| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function __invoke(ContainerInterface $container, string $requestedName, array $options = null): HtmlFormatter |
||
| 19 | { |
||
| 20 | $options = $options ?? $this->getServiceOptions($container, $requestedName); |
||
| 21 | |||
| 22 | $formatter = new HtmlFormatter( |
||
| 23 | $options['date_format'] ?? null |
||
| 24 | ); |
||
| 25 | |||
| 26 | $this->configureNormalizerFormatter($formatter, $options); |
||
| 27 | return $formatter; |
||
| 28 | 2 | } |
|
| 30 |