Passed
Push — master ( 5a78d1...7da590 )
by Nils
09:03
created
src/Collector/Package/Dpkg/DpkgPackageCollector.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,9 @@
 block discarded – undo
44 44
         $packages = [];
45 45
 
46 46
         foreach ($lines as $line) {
47
-            if (trim($line) === '') continue;
47
+            if (trim($line) === '') {
48
+                continue;
49
+            }
48 50
 
49 51
             if (preg_match('/^([^\s\/]+)\/[^\s]+\s+([^\s]+).*upgradable from: ([^\]]+)/', $line, $matches)) {
50 52
                 $packages[$matches[1]] = [
Please login to merge, or discard this patch.
src/Collector/Application/Monitoring/WebProsMonitoringCollector.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,14 +23,18 @@
 block discarded – undo
23 23
      */
24 24
     public function collect(): array
25 25
     {
26
-        if (!file_exists(self::INI_FILE)) return [];
26
+        if (!file_exists(self::INI_FILE)) {
27
+            return [];
28
+        }
27 29
 
28 30
         $config = file(self::INI_FILE);
29 31
 
30 32
         $configArray = [];
31 33
 
32 34
         foreach ($config as $line) {
33
-            if (str_starts_with($line, '[')) continue;
35
+            if (str_starts_with($line, '[')) {
36
+                continue;
37
+            }
34 38
             $element = explode('=', $line);
35 39
             $configArray[$element[0]] = trim($element[1]);
36 40
         }
Please login to merge, or discard this patch.
src/Collector/Website/WordPress/WordPressCollector.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,9 @@  discard block
 block discarded – undo
21 21
     {
22 22
         if (!array_key_exists(ApacheServerNameCollector::COLLECTION_IDENTIFIER, $this->inventory)
23 23
             || !is_array($this->inventory[ApacheServerNameCollector::COLLECTION_IDENTIFIER])
24
-        ) return [];
24
+        ) {
25
+            return [];
26
+        }
25 27
 
26 28
         $configs = $this->inventory[ApacheServerNameCollector::COLLECTION_IDENTIFIER];
27 29
 
@@ -33,7 +35,9 @@  discard block
 block discarded – undo
33 35
 
34 36
             if (file_exists($documentRoot . '/wp-config.php')) {
35 37
 
36
-                if (!str_ends_with($documentRoot, '/')) $documentRoot = $documentRoot . '/';
38
+                if (!str_ends_with($documentRoot, '/')) {
39
+                    $documentRoot = $documentRoot . '/';
40
+                }
37 41
 
38 42
                 $wordPressInstallations[$domain] = [
39 43
                     'domain' => $domain,
@@ -90,7 +94,9 @@  discard block
 block discarded – undo
90 94
         ];
91 95
 
92 96
         $fp = fopen($file, 'r');
93
-        if (!$fp) return [];
97
+        if (!$fp) {
98
+            return [];
99
+        }
94 100
 
95 101
         $data = fread($fp, 8192);
96 102
         fclose($fp);
Please login to merge, or discard this patch.
src/Collector/System/Security/GeneralSecurityCollector.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,9 @@
 block discarded – undo
84 84
 
85 85
         foreach ($lines as $line) {
86 86
             $line = trim(preg_replace('/#.*/', '', $line)); // Kommentare entfernen
87
-            if ($line === '') continue;
87
+            if ($line === '') {
88
+                continue;
89
+            }
88 90
 
89 91
             if (preg_match('/^\s*(\w+)\s+(yes|no)\s*$/i', $line, $matches)) {
90 92
                 $key = strtolower($matches[1]);
Please login to merge, or discard this patch.
src/Collector/Website/UptimeCollector.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,9 @@
 block discarded – undo
23 23
     {
24 24
         if (!array_key_exists(ApacheServerNameCollector::COLLECTION_IDENTIFIER, $this->inventory)
25 25
             || !is_array($this->inventory[ApacheServerNameCollector::COLLECTION_IDENTIFIER])
26
-        ) return [];
26
+        ) {
27
+            return [];
28
+        }
27 29
 
28 30
         $configs = $this->inventory[ApacheServerNameCollector::COLLECTION_IDENTIFIER];
29 31
 
Please login to merge, or discard this patch.
src/Collector/System/Logs/LogrotateCollector.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,9 @@
 block discarded – undo
43 43
         // Step 2: Extract managed log paths from logrotate config files
44 44
         $explicitManaged = [];
45 45
         foreach ($logrotateConfs as $confFile) {
46
-            if (!is_readable($confFile)) continue;
46
+            if (!is_readable($confFile)) {
47
+                continue;
48
+            }
47 49
             $lines = file($confFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
48 50
             foreach ($lines as $line) {
49 51
                 if (preg_match('#^\s*/[^\s{}]+\.log#', $line, $matches)) {
Please login to merge, or discard this patch.