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