| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | private function buildRotateDefault(array $options = []): Rotation |
||
| 31 | { |
||
| 32 | return new Rotation(array_merge( |
||
| 33 | [ |
||
| 34 | 'files' => config('rotate.log_max_files', 366), |
||
| 35 | 'compress' => config('rotate.log_compress_files', true), |
||
| 36 | 'then' => function ($filenameRotated, $filename) { |
||
| 37 | event(new RotateWasSuccessful($filename, $filenameRotated)); |
||
| 38 | }, |
||
| 39 | 'truncate' => config('rotate.truncate', true), |
||
| 40 | 'catch' => function ($error) { |
||
| 41 | event(new RotateHasFailed('', $error)); |
||
| 42 | }, |
||
| 43 | ], |
||
| 44 | $options |
||
| 45 | )); |
||
| 48 |