Passed
Push — master ( b56886...af36fa )
by Nils
03:08
created
src/Collector/System/Security/GeneralSecurityCollector.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,9 @@  discard block
 block discarded – undo
54 54
 
55 55
         $runner = Runner::getInstance();
56 56
 
57
-        if (!$runner->commandExists('apt')) return false;
57
+        if (!$runner->commandExists('apt')) {
58
+            return false;
59
+        }
58 60
 
59 61
         return !empty($runner->run('apt-cache show unattended-upgrades 2>/dev/null')->getOutput());
60 62
     }
@@ -84,7 +86,9 @@  discard block
 block discarded – undo
84 86
 
85 87
         foreach ($lines as $line) {
86 88
             $line = trim(preg_replace('/#.*/', '', $line)); // Kommentare entfernen
87
-            if ($line === '') continue;
89
+            if ($line === '') {
90
+                continue;
91
+            }
88 92
 
89 93
             if (preg_match('/^\s*(\w+)\s+(yes|no)\s*$/i', $line, $matches)) {
90 94
                 $key = strtolower($matches[1]);
Please login to merge, or discard this patch.