Passed
Push — master ( 793b2d...fb1c56 )
by Nils
02:40
created
src/Collector/Application/Monitoring/WebProsMonitoringCollector.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,14 +26,18 @@
 block discarded – undo
26 26
     {
27 27
         $runner = Runner::getInstance();
28 28
 
29
-        if (!$runner->fileExists(self::INI_FILE)) return [];
29
+        if (!$runner->fileExists(self::INI_FILE)) {
30
+            return [];
31
+        }
30 32
 
31 33
         $config = $runner->getFileContents(self::INI_FILE, true);
32 34
 
33 35
         $configArray = [];
34 36
 
35 37
         foreach ($config as $line) {
36
-            if (str_starts_with($line, '[')) continue;
38
+            if (str_starts_with($line, '[')) {
39
+                continue;
40
+            }
37 41
             $element = explode('=', $line);
38 42
             $configArray[$element[0]] = trim($element[1]);
39 43
         }
Please login to merge, or discard this patch.
src/Exec/Runner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         return explode("\n", trim($output));
60 60
     }
61 61
 
62
-    public function getFileContents(string $path, bool $asArray = false): string|false|array
62
+    public function getFileContents(string $path, bool $asArray = false): string | false | array
63 63
     {
64 64
         if ($asArray) {
65 65
             return file($path);
Please login to merge, or discard this patch.
src/Command/CollectCommand.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,9 @@
 block discarded – undo
75 75
                 $collector->setClient($client);
76 76
             }
77 77
 
78
-            if ($debugMode) $start = time();
78
+            if ($debugMode) {
79
+                $start = time();
80
+            }
79 81
             $collected = $collector->collect();
80 82
             if ($collected) {
81 83
                 $inventory[$collector->getIdentifier()] = $collected;
Please login to merge, or discard this patch.
src/Collector/System/Service/SystemDCollector.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,9 @@
 block discarded – undo
133 133
         $services = [];
134 134
 
135 135
         foreach ($lines as $line) {
136
-            if (empty($line)) continue;
136
+            if (empty($line)) {
137
+                continue;
138
+            }
137 139
 
138 140
             list($unit, $load, $active, $sub) = explode(' ', $line);
139 141
 
Please login to merge, or discard this patch.