1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-06 21:26:48 +02:00

refactor(core): code formating and refactoring

This commit is contained in:
Awilum
2020-12-06 15:09:50 +03:00
parent 4be73b48e8
commit 644d79bcf6
3 changed files with 6 additions and 7 deletions

View File

@@ -9,9 +9,8 @@ declare(strict_types=1);
namespace Flextype\Foundation\Media;
use Atomastic\Macroable\Macroable;
use Atomastic\Arrays\Arrays;
use Atomastic\Macroable\Macroable;
use ErrorException;
use Intervention\Image\ImageManagerStatic as Image;
use RuntimeException;
@@ -19,12 +18,12 @@ use Slim\Http\Environment;
use Slim\Http\Uri;
use function arrays;
use function filter;
use function basename;
use function chmod;
use function exif_read_data;
use function explode;
use function filesystem;
use function filter;
use function flextype;
use function getimagesize;
use function in_array;
@@ -172,7 +171,7 @@ class MediaFiles
try {
$headers = @exif_read_data($filename);
if ($headers != false) {
if ($headers !== false) {
foreach ($headers['COMPUTED'] as $header => $value) {
$exif_data[$header] = $value;
}

View File

@@ -9,14 +9,14 @@ declare(strict_types=1);
namespace Flextype\Foundation\Media;
use Atomastic\Macroable\Macroable;
use Atomastic\Arrays\Arrays;
use Atomastic\Macroable\Macroable;
use Slim\Http\Environment;
use Slim\Http\Uri;
use function arrays;
use function filter;
use function filesystem;
use function filter;
use function flextype;
use function str_replace;

View File

@@ -28,7 +28,7 @@ use function trim;
class Plugins
{
use Macroable;
/**
* Locales array
*