@@ -38,7 +38,9 @@ |
||
| 38 | 38 | // Step 2: Extract managed log file paths from logrotate configs |
| 39 | 39 | $managedLogs = []; |
| 40 | 40 | foreach ($logrotateConfs as $confFile) { |
| 41 | - if (!is_readable($confFile)) continue; |
|
| 41 | + if (!is_readable($confFile)) { |
|
| 42 | + continue; |
|
| 43 | + } |
|
| 42 | 44 | $lines = file($confFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); |
| 43 | 45 | foreach ($lines as $line) { |
| 44 | 46 | // Look for lines that contain a log file path |