| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 11 |
| Ratio | 100 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | 1 | public function __invoke(array $options) |
|
| 14 | { |
||
| 15 | 1 | $filename = (string) ($options['filename'] ?? ''); |
|
| 16 | 1 | $maxFiles = (int) ($options['maxFiles'] ?? 0); |
|
| 17 | 1 | $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 18 | 1 | $bubble = (bool) ($options['bubble'] ?? true); |
|
| 19 | 1 | $filePermission = (int) ($options['filePermission'] ?? null); |
|
| 20 | 1 | $useLocking = (bool) ($options['useLocking'] ?? false); |
|
| 21 | |||
| 22 | 1 | return new RotatingFileHandler($filename, $maxFiles, $level, $bubble, $filePermission, $useLocking); |
|
| 23 | } |
||
| 24 | } |
||
| 25 |