Conditions | 4 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function __invoke( |
||
20 | ContainerInterface $container, |
||
21 | string $requestedName, |
||
22 | array $options = null |
||
23 | ): PsrLogMessageProcessor { |
||
24 | $options = $options ?? $this->getServiceOptions($container, $requestedName); |
||
25 | |||
26 | return new PsrLogMessageProcessor( |
||
27 | (isset($options['date_format']) && is_string($options['date_format'])) |
||
28 | ? $options['date_format'] |
||
29 | : null, |
||
30 | isset($options['remove_used_context_fields']) && $options['remove_used_context_fields'] |
||
31 | ); |
||
34 |