@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | $this->getName($width, $height) . '.' . $pic->getClientOriginalExtension(), self::EXTENSION_DOT_LENGTH); |
| 25 | 25 | Storage::put('compressed/' . $newName, File::get($pic)); |
| 26 | 26 | $img = Image::make(storage_path('app/compressed/') . $newName); |
| 27 | - $img->resize($width, $height, function ($constraint) { |
|
| 27 | + $img->resize($width, $height, function($constraint) { |
|
| 28 | 28 | $constraint->aspectRatio(); |
| 29 | 29 | $constraint->upsize(); |
| 30 | 30 | }); |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | ]); |
| 46 | 46 | $imageOptimizer->optimizeImage($file); |
| 47 | 47 | $img = Image::make($file); |
| 48 | - $img->resize($width, $height, function ($constraint) { |
|
| 48 | + $img->resize($width, $height, function($constraint) { |
|
| 49 | 49 | $constraint->aspectRatio(); |
| 50 | 50 | $constraint->upsize(); |
| 51 | 51 | }); |