Completed
Push — master ( 05b722...3814de )
by dan
01:59
created
ImageProcessing/FocusCropDataCalculator.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -77,11 +77,9 @@  discard block
 block discarded – undo
77 77
 
78 78
         if ($imageAspectRatio > $styleAspectRatio) {
79 79
             $axis = 'x';
80
-        }
81
-        else if ($imageAspectRatio < $styleAspectRatio) {
80
+        } else if ($imageAspectRatio < $styleAspectRatio) {
82 81
             $axis = 'y';
83
-        }
84
-        else {
82
+        } else {
85 83
             return [
86 84
                 'width'  => $newWidth,
87 85
                 'height' => $newHeight,
@@ -114,8 +112,7 @@  discard block
 block discarded – undo
114 112
             // How many times the style height goes into the new height
115 113
             $scaleFactor = $newHeight / $this->styleHeight;
116 114
             $cropWidth = $this->styleWidth * $scaleFactor;
117
-        }
118
-        else {
115
+        } else {
119 116
             $cropWidth = $newWidth;
120 117
 
121 118
             // How many times the style height goes into the new height
@@ -178,8 +175,7 @@  discard block
 block discarded – undo
178 175
 
179 176
         if ($type == 'near') {
180 177
             $point = ${'focus' . $axis . '1'} - ${'crop' . $axis . '1'};
181
-        }
182
-        else {
178
+        } else {
183 179
             $point = ${'focus' . $axis . '2'} - ${'crop' . $axis . '1'};
184 180
         }
185 181
 
Please login to merge, or discard this patch.