From 72597436a7eea632eca9e5343f9e794cc96947ff Mon Sep 17 00:00:00 2001 From: philipp lang Date: Sat, 10 Sep 2022 19:58:24 +0200 Subject: [PATCH] Lint --- classes/ImageResizer.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/classes/ImageResizer.php b/classes/ImageResizer.php index f067bb9..80914fa 100644 --- a/classes/ImageResizer.php +++ b/classes/ImageResizer.php @@ -8,12 +8,9 @@ use Aweos\Resizer\Lib\MediaPath; use Aweos\Resizer\Models\Setting; use Illuminate\Filesystem\FilesystemAdapter; use Illuminate\Support\Collection; -use October\Rain\Resize\Resizer; -use Storage; class ImageResizer { - private FilesystemAdapter $disk; private string $uploadDir; private MediaPath $file; @@ -94,7 +91,7 @@ class ImageResizer private function generateVersions(): void { foreach ($this->possibleSizes() as $size) { - $this->compressor->resize($size, $this->update, function($media, $file) { + $this->compressor->resize($size, $this->update, function ($media, $file) { if (!file_exists($file)) { throw new ResizerException('File versions cannot be generated. Version file "'.$file.'" of "'.$this->file->root().'" doesnt exist.'); } @@ -104,5 +101,4 @@ class ImageResizer }); } } - }