Passed
Branch test (9f6d33)
by Tom
02:07
created
src/PharBuild/Builder.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -320,12 +320,14 @@
 block discarded – undo
320 320
             return array();
321 321
             // @codeCoverageIgnoreEnd
322 322
         }
323
-        if ($result === array()) $this->err(sprintf(
323
+        if ($result === array()) {
324
+            $this->err(sprintf(
324 325
             "ineffective pattern: %s",
325 326
             $pattern === $glob
326 327
                 ? $pattern
327 328
                 : sprintf("'%s' -> '%s'", $pattern, $glob)
328 329
         ));
330
+        }
329 331
         if (!is_array($result)) {
330 332
             // @codeCoverageIgnoreStart
331 333
             throw new \UnexpectedValueException(
Please login to merge, or discard this patch.
src/File.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -272,7 +272,9 @@
 block discarded – undo
272 272
         }
273 273
 
274 274
         foreach ($array as $section => $refs) {
275
-            if (!in_array($section, $sections, true)) continue;
275
+            if (!in_array($section, $sections, true)) {
276
+                continue;
277
+            }
276 278
             if (!is_array($refs)) {
277 279
                 ParseException::__("'$section' requires a list");
278 280
             }
Please login to merge, or discard this patch.
src/Utility/App.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -357,9 +357,15 @@
 block discarded – undo
357 357
         $list = $args->hasOption('list');
358 358
         $images = $args->hasOption('images');
359 359
 
360
-        if ($images) return $this->showImages($pipelines);
361
-        if ($show) return $this->showPipelines($pipelines);
362
-        if ($list) return $this->showPipelineIds($pipelines);
360
+        if ($images) {
361
+            return $this->showImages($pipelines);
362
+        }
363
+        if ($show) {
364
+            return $this->showPipelines($pipelines);
365
+        }
366
+        if ($list) {
367
+            return $this->showPipelineIds($pipelines);
368
+        }
363 369
 
364 370
         ###
365 371
 
Please login to merge, or discard this patch.