@@ -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 | }); |
30 | 30 | unlink(storage_path('app/compressed/') . $newName); |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | ]); |
44 | 44 | $imageOptimizer->optimizeImage($file); |
45 | 45 | $img = Image::make($file); |
46 | - $img->resize($width, $height, function ($constraint) { |
|
46 | + $img->resize($width, $height, function($constraint) { |
|
47 | 47 | $constraint->aspectRatio(); |
48 | 48 | }); |
49 | 49 | return $img->response(); |