Completed
Push — master ( 05b722...3814de )
by dan
01:59
created
Tests/ResponsiveImageTestCase.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,7 @@
 block discarded – undo
47 47
         foreach ($files as $file) {
48 48
             if (is_dir($file)) {
49 49
                 self::deleteDirectory($file);
50
-            }
51
-            else {
50
+            } else {
52 51
                 unlink($file);
53 52
             }
54 53
         }
Please login to merge, or discard this patch.
Tests/File/FileToObjectTest.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,7 @@
 block discarded – undo
35 35
                                     $image = new TestImage();
36 36
                                     if ($filename === $image->getPath()) {
37 37
                                         return $image;
38
-                                    }
39
-                                    else {
38
+                                    } else {
40 39
                                         return null;
41 40
                                     }
42 41
                                 }
Please login to merge, or discard this patch.
Tests/File/FilenameTransliteratorTest.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,7 @@
 block discarded – undo
36 36
                                      $image = new TestImage();
37 37
 
38 38
                                      return $image;
39
-                                 }
40
-                                 else {
39
+                                 } else {
41 40
                                      return null;
42 41
                                  }
43 42
                              }
Please login to merge, or discard this patch.
Validator/Constraints/CropFocusCoordinatesValidator.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,7 @@
 block discarded – undo
36 36
         $testValue = str_replace(' ', '', $value);
37 37
         if (!preg_match('/^(\d+),(\d+),(\d+),(\d+):(\d+),(\d+),(\d+),(\d+)$/', $testValue, $matches)) {
38 38
             $valid = false;
39
-        }
40
-        else {
39
+        } else {
41 40
             // Check the focus rectangle is inside the crop rectangle.
42 41
             $cropFocusCoordinates = explode(':', $testValue);
43 42
             $crop                 = explode(',', $cropFocusCoordinates[0]);
Please login to merge, or discard this patch.
Uploader.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -114,8 +114,7 @@
 block discarded – undo
114 114
             if (!empty($uploaderEvent)) {
115 115
                 $this->eventDispatcher->dispatch(UploaderEvents::UPLOADER_UPLOADED, $uploaderEvent);
116 116
             }
117
-        }
118
-        else {
117
+        } else {
119 118
             $error = empty($this->error) ? $this->file->getErrorMessage() : $this->error;
120 119
             throw new FileException(
121 120
                 $error
Please login to merge, or discard this patch.
ImageProcessing/ImageManager.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,8 +123,7 @@
 block discarded – undo
123 123
     {
124 124
         if (!empty($style)) {
125 125
             $path = $this->styleManager->getStylePath($image, $style);
126
-        }
127
-        else {
126
+        } else {
128 127
             $path = $image->getPath();
129 128
         }
130 129
         $this->fileSystem->delete($path);
Please login to merge, or discard this patch.
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.