@@ -43,7 +43,9 @@ |
||
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)) { |