| Conditions | 3 |
| Paths | 4 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 31 | public function __invoke(ContainerInterface $container): VideoInfoReaderInterface |
|
| 22 | { |
||
| 23 | 31 | $logger = $container->has(LoggerInterface::class) ? $container->get(LoggerInterface::class) : null; |
|
| 24 | 31 | $cache = $container->has(CacheInterface::class) ? $container->get(CacheInterface::class) : null; |
|
| 25 | |||
| 26 | 31 | return new VideoInfoReader( |
|
| 27 | 31 | $container->get(FFProbeConfigInterface::class), |
|
| 28 | $logger, |
||
| 29 | $cache |
||
| 30 | ); |
||
| 33 |