@@ -44,7 +44,9 @@ |
||
44 | 44 | // Step 2: Extract managed log paths from logrotate config files |
45 | 45 | $managedLogs = []; |
46 | 46 | foreach ($logrotateConfs as $confFile) { |
47 | - if (!is_readable($confFile)) continue; |
|
47 | + if (!is_readable($confFile)) { |
|
48 | + continue; |
|
49 | + } |
|
48 | 50 | $lines = file($confFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); |
49 | 51 | foreach ($lines as $line) { |
50 | 52 | if (preg_match('#^\s*/[^\s{}]+\.log#', $line, $matches)) { |