Test Failed
Pull Request — master (#23)
by Mostafa
15:47
created
src/Storage/Image.php 1 patch
Braces   +6 added lines, -12 removed lines patch added patch discarded remove patch
@@ -61,17 +61,13 @@  discard block
 block discarded – undo
61 61
 
62 62
         if ($style->mode === LaruploadMediaStyle::SCALE_HEIGHT and $style->width) {
63 63
             $this->resizeLandscape($style->width);
64
-        }
65
-        else if ($style->mode == LaruploadMediaStyle::SCALE_WIDTH and $style->height) {
64
+        } else if ($style->mode == LaruploadMediaStyle::SCALE_WIDTH and $style->height) {
66 65
             $this->resizePortrait($style->height);
67
-        }
68
-        else if ($style->mode == LaruploadMediaStyle::CROP and $style->height and $style->width) {
66
+        } else if ($style->mode == LaruploadMediaStyle::CROP and $style->height and $style->width) {
69 67
             $this->resizeCrop($style->width, $style->height);
70
-        }
71
-        else if ($style->mode == LaruploadMediaStyle::FIT and $style->height and $style->width) {
68
+        } else if ($style->mode == LaruploadMediaStyle::FIT and $style->height and $style->width) {
72 69
             $this->resizeExact($style->width, $style->height);
73
-        }
74
-        else {
70
+        } else {
75 71
             $this->resizeAuto($style->width, $style->height);
76 72
         }
77 73
 
@@ -81,8 +77,7 @@  discard block
 block discarded – undo
81 77
             $isSvg
82 78
                 ? $this->image->toPng()->save($saveTo)
83 79
                 : $this->image->encode()->save($saveTo);
84
-        }
85
-        else {
80
+        } else {
86 81
             list($path, $name) = split_larupload_path($saveTo);
87 82
 
88 83
             $tempDir = larupload_temp_dir();
@@ -115,8 +110,7 @@  discard block
 block discarded – undo
115 110
 
116 111
             if ($file instanceof UploadedFile) {
117 112
                 $path = $file->getRealPath();
118
-            }
119
-            else if (file_exists($file)) {
113
+            } else if (file_exists($file)) {
120 114
                 $path = $file;
121 115
             }
122 116
 
Please login to merge, or discard this patch.