Completed
Push — master ( affede...335ca0 )
by Oscar
03:35
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
             $constraint->upsize();
30 30
         });
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
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
         });
Please login to merge, or discard this patch.