| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | 3 | public function __invoke(array $options) |
|
| 19 | { |
||
| 20 | 3 | $stream = $this->getStream( |
|
| 21 | 3 | $options['stream'] ?? null, |
|
| 22 | 3 | $options['dateFormat'] ?? 'Ymd' |
|
| 23 | ); |
||
| 24 | |||
| 25 | 3 | $level = (int)($options['level'] ?? Logger::DEBUG); |
|
| 26 | 3 | $bubble = (boolean)($options['bubble'] ?? true); |
|
| 27 | 3 | $filePermission = (int)($options['filePermission'] ?? 0644); |
|
| 28 | 3 | $useLocking = (boolean)($options['useLocking'] ?? true); |
|
| 29 | |||
| 30 | 3 | return new StreamHandler($stream, $level, $bubble, $filePermission, $useLocking); |
|
| 31 | } |
||
| 32 | |||
| 42 |