| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 12 | public function __invoke(ContainerInterface $container): VideoInfoReaderInterface |
|
| 22 | { |
||
| 23 | 12 | if ($container->has(LoggerConfigInterface::class)) { |
|
| 24 | 1 | $logger = $container->get(LoggerConfigInterface::class)->getLogger(); |
|
| 25 | } else { |
||
| 26 | 11 | $logger = new NullLogger(); |
|
| 27 | } |
||
| 28 | |||
| 29 | 12 | return new VideoInfoReader( |
|
| 30 | 12 | $container->get(FFProbeConfigInterface::class), |
|
| 31 | $logger |
||
| 32 | ); |
||
| 35 |