Passed
Push — master ( 5153e5...af085a )
by Sebastian
05:42 queued 30s
created
src/IniHelper/Section.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -198,8 +198,7 @@  discard block
 block discarded – undo
198 198
                     } else {
199 199
                         $this->addValueLine($name, $values[$i]);
200 200
                     }
201
-                }
202
-                else 
201
+                } else 
203 202
                 {
204 203
                     $this->deleteLine($lines[$i]);
205 204
                 }
@@ -219,8 +218,7 @@  discard block
 block discarded – undo
219 218
                 foreach($lines as $delete) {
220 219
                     $this->deleteLine($delete);
221 220
                 }
222
-            }
223
-            else 
221
+            } else 
224 222
             {
225 223
                 $this->addValueLine($name, $value);
226 224
             }
@@ -258,8 +256,7 @@  discard block
 block discarded – undo
258 256
         if(empty($lines))
259 257
         {
260 258
             $this->addValueLine($name, $value);
261
-        }
262
-        else
259
+        } else
263 260
         {
264 261
             $found = false;
265 262
             
Please login to merge, or discard this patch.
src/ImageHelper.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -151,8 +151,7 @@  discard block
 block discarded – undo
151 151
             $this->sourceImage = $resource;
152 152
             $this->type = $type;
153 153
             $this->info = self::getImageSize($resource);
154
-        } 
155
-        else 
154
+        } else 
156 155
         {
157 156
             $this->file = $sourceFile;
158 157
             if (!file_exists($this->file)) {
@@ -561,8 +560,7 @@  discard block
 block discarded – undo
561 560
         if ($this->width <= $this->height) 
562 561
         {
563 562
             $this->resampleByWidth($width);
564
-        } 
565
-        else 
563
+        } else 
566 564
         {
567 565
             $this->resampleByHeight($height);
568 566
         }
@@ -1037,8 +1035,7 @@  discard block
 block discarded – undo
1037 1035
         {
1038 1036
             $bg2 = imagecolorallocatealpha($im2, $color['red'], $color['green'], $color['blue'], $color['alpha']);
1039 1037
             imagecolortransparent($im2, $bg2);
1040
-        }
1041
-        else
1038
+        } else
1042 1039
         {
1043 1040
             $bg2 = imagecolorallocate($im2, $color['red'], $color['green'], $color['blue']);
1044 1041
         }
@@ -1348,8 +1345,7 @@  discard block
 block discarded – undo
1348 1345
 	    if(method_exists(__CLASS__, $method)) 
1349 1346
 	    {
1350 1347
 	        $info = call_user_func(array(__CLASS__, $method), $pathOrResource);
1351
-	    } 
1352
-	    else 
1348
+	    } else 
1353 1349
 	    {
1354 1350
 	        $info = getimagesize($pathOrResource);
1355 1351
 	    }
Please login to merge, or discard this patch.
src/ConvertHelper/WordWrapper.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,8 +92,7 @@
 block discarded – undo
92 92
                 if (mb_strlen($actual.$word) <= $width)
93 93
                 {
94 94
                     $actual .= $word.' ';
95
-                }
96
-                else
95
+                } else
97 96
                 {
98 97
                     if ($actual != '') {
99 98
                         $line .= rtrim($actual).$break;
Please login to merge, or discard this patch.
src/Request/AcceptHeaders.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -141,14 +141,12 @@
 block discarded – undo
141 141
         if ($diff > 0) 
142 142
         {
143 143
             $diff = 1;
144
-        } 
145
-        else 
144
+        } else 
146 145
         {
147 146
             if ($diff < 0) 
148 147
             {
149 148
                 $diff = -1;
150
-            } 
151
-            else 
149
+            } else 
152 150
             {
153 151
                 /* tie-breaker: first listed item wins */
154 152
                 $diff = $a['pos'] - $b['pos'];
Please login to merge, or discard this patch.
src/Request/Param/Validator/Json.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,8 +45,7 @@
 block discarded – undo
45 45
             if(is_object(json_decode($value))) {
46 46
                 return $value;
47 47
             }
48
-        }
49
-        else
48
+        } else
50 49
         {
51 50
             if(is_array(json_decode($value, true))) {
52 51
                 return $value;
Please login to merge, or discard this patch.
src/XMLHelper/Converter/Decorator.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -145,8 +145,7 @@  discard block
 block discarded – undo
145 145
                 }
146 146
                 
147 147
                 $this->result[$name][] = $decorator;
148
-            } 
149
-            else 
148
+            } else 
150 149
             {
151 150
                 $this->result[$name] = $decorator;
152 151
             }
@@ -163,8 +162,7 @@  discard block
 block discarded – undo
163 162
             if($this->options['@text']) 
164 163
             {
165 164
                 $this->result['@text'] = $text;
166
-            } 
167
-            else 
165
+            } else 
168 166
             {
169 167
                 $this->result = $text;
170 168
             }
Please login to merge, or discard this patch.
src/FileHelper/FileFinder.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -367,8 +367,7 @@
 block discarded – undo
367 367
             if(!in_array($extension, $include)) {
368 368
                 return false;
369 369
             }
370
-        }
371
-        else if(!empty($exclude))
370
+        } else if(!empty($exclude))
372 371
         {
373 372
             if(in_array($extension, $exclude)) {
374 373
                 return false;
Please login to merge, or discard this patch.
src/VariableInfo/Renderer/String/Array.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,7 @@
 block discarded – undo
22 22
             if(is_array($val))
23 23
             {
24 24
                 $result[$key] = $this->traverseArray($val, ($level+1));
25
-            }
26
-            else
25
+            } else
27 26
             {
28 27
                 $result[$key] = parseVariable($val)->toString();
29 28
             }
Please login to merge, or discard this patch.
src/XMLHelper/DOMErrors.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,7 @@
 block discarded – undo
38 38
             if($error instanceof XMLHelper_DOMErrors_Error)
39 39
             {
40 40
                 $this->errors[] = $error;
41
-            }
42
-            else if($error instanceof \LibXMLError)
41
+            } else if($error instanceof \LibXMLError)
43 42
             {
44 43
                 $this->errors[] = new XMLHelper_DOMErrors_Error($error);
45 44
             }
Please login to merge, or discard this patch.