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 }); } } - }