Passed
Push — master ( 6edd3f...805485 )
by Nils
02:47
created
src/Collector/Container/DockerCollector.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,9 @@  discard block
 block discarded – undo
22 22
     {
23 23
         $runner = new Runner();
24 24
 
25
-        if (!$runner->commandExists('docker')) return [];
25
+        if (!$runner->commandExists('docker')) {
26
+            return [];
27
+        }
26 28
 
27 29
         $cmd = 'docker ps --format {{.ID}}|{{.Image}}|{{.Names}}|{{.Ports}}';
28 30
         $output = Runner::getInstance()->run($cmd)->getOutput();
@@ -31,7 +33,9 @@  discard block
 block discarded – undo
31 33
         $containers = [];
32 34
 
33 35
         foreach ($lines as $line) {
34
-            if (empty($line)) continue;
36
+            if (empty($line)) {
37
+                continue;
38
+            }
35 39
 
36 40
             [$id, $image, $name, $ports] = explode('|', $line);
37 41
             $containers[] = [
Please login to merge, or discard this patch.