| Conditions | 4 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 2 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function __invoke(ContainerInterface $container, string $requestedName, array $options = null): LineFormatter |
||
| 19 | { |
||
| 20 | $options = $options ?? $this->getServiceOptions($container, $requestedName); |
||
| 21 | |||
| 22 | $formatter = new LineFormatter( |
||
| 23 | $options['format'] ?? null, |
||
| 24 | $options['date_format'] ?? null, |
||
| 25 | isset($options['allow_inline_line_breaks']) && $options['allow_inline_line_breaks'], |
||
| 26 | isset($options['ignore_empty_context_and_extra']) && $options['ignore_empty_context_and_extra'], |
||
| 27 | isset($options['include_stack_traces']) && $options['include_stack_traces'] |
||
| 28 | ); |
||
| 29 | |||
| 30 | 4 | $this->configureNormalizerFormatter($formatter, $options); |
|
| 31 | |||
| 32 | 4 | return $formatter; |
|
| 33 | } |
||
| 35 |