@@ -54,7 +54,9 @@ discard block |
||
| 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 |
||
| 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]); |