| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | 2 | public function __invoke(ContainerInterface $container, string $requestedName, array $options = null): HtmlFormatter |
|
| 29 | { |
||
| 30 | 2 | $options = $options ?? $this->getServiceOptions($container, $requestedName); |
|
| 31 | |||
| 32 | 2 | $formatter = new HtmlFormatter( |
|
| 33 | 2 | $options['date_format'] ?? null |
|
| 34 | ); |
||
| 35 | |||
| 36 | 2 | $this->configureNormalizerFormatter($formatter, $options); |
|
| 37 | 2 | return $formatter; |
|
| 38 | } |
||
| 40 |