Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | private function buildRotateDefault(array $options = []): Rotation |
||
24 | { |
||
25 | return new Rotation(array_merge( |
||
26 | [ |
||
27 | 'files' => config('rotate.log_max_files', 366), |
||
28 | 'compress' => config('rotate.log_compress_files', true), |
||
29 | 'then' => function ($filenameRotated, $filename) { |
||
30 | event(new RotateWasSuccessful($filename, $filenameRotated)); |
||
31 | }, |
||
32 | 'catch' => function ($error) { |
||
33 | event(new RotateHasFailed('', $error)); |
||
34 | }, |
||
35 | ], |
||
36 | $options |
||
37 | )); |
||
40 |