| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2.0185 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | 12 | public function __invoke(ContainerInterface $container): VideoThumbGeneratorInterface |
|
| 15 | { |
||
| 16 | 12 | if ($container->has(LoggerConfigInterface::class)) { |
|
| 17 | $logger = $container->get(LoggerConfigInterface::class)->getLogger(); |
||
| 18 | } else { |
||
| 19 | 12 | $logger = new NullLogger(); |
|
| 20 | } |
||
| 21 | |||
| 22 | 12 | return new VideoThumbGenerator( |
|
| 23 | 12 | $container->get(FFMpegConfigInterface::class), |
|
| 24 | $logger |
||
| 25 | ); |
||
| 28 |