Completed
Pull Request — master (#10)
by dan
09:38
created
Twig/ResponsiveImageExtension.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -157,8 +157,7 @@  discard block
 block discarded – undo
157 157
                     $subData[$item] = $this->createPublicFileUrl($path);
158 158
                 }
159 159
                 $data[$key] = $subData;
160
-            }
161
-            else {
160
+            } else {
162 161
                 $data[$key] = $this->createPublicFileUrl($data[$key]);
163 162
             }
164 163
         }
@@ -274,8 +273,7 @@  discard block
 block discarded – undo
274 273
     {
275 274
         if (!empty($styleName)) {
276 275
             $path = $this->styleManager->getStylePath($image, $styleName);
277
-        }
278
-        else {
276
+        } else {
279 277
             $path = $image->getPath();
280 278
         }
281 279
 
Please login to merge, or discard this patch.
Url/UrlBuilder.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -149,8 +149,7 @@
 block discarded – undo
149 149
         if ($urlBits[0] == 'http' || $urlBits[0] == 'https') {
150 150
             $urlPrefix = $urlBits[0] . '://';
151 151
             $urlPath   = $urlBits[1];
152
-        }
153
-        else {
152
+        } else {
154 153
             $urlPrefix = '/';
155 154
             $urlPath   = $url;
156 155
         }
Please login to merge, or discard this patch.
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.