Completed
Pull Request — master (#63)
by Bertrand
10:01
created
app/Src/UseCases/Domain/Users/GetAvatar.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,12 +27,12 @@
 block discarded – undo
27 27
         $w = $img->width();
28 28
 
29 29
         $img = Image::cache(function($image) use($pathPicture, $dim, $w, $h){
30
-            if($w <= $h) {
31
-                $image->make($pathPicture)->widen($dim, function ($constraint) {
30
+            if ($w <= $h) {
31
+                $image->make($pathPicture)->widen($dim, function($constraint) {
32 32
                     $constraint->upsize();
33 33
                 });
34
-            }else{
35
-                $image->make($pathPicture)->heighten($dim, function ($constraint) {
34
+            } else {
35
+                $image->make($pathPicture)->heighten($dim, function($constraint) {
36 36
                     $constraint->upsize();
37 37
                 });
38 38
             }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
                 $image->make($pathPicture)->widen($dim, function ($constraint) {
32 32
                     $constraint->upsize();
33 33
                 });
34
-            }else{
34
+            } else{
35 35
                 $image->make($pathPicture)->heighten($dim, function ($constraint) {
36 36
                     $constraint->upsize();
37 37
                 });
Please login to merge, or discard this patch.