Completed
Pull Request — master (#11)
by Oscar
03:46
created
app/Http/Controllers/Optimizer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.