| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | protected function execute(InputInterface $input, OutputInterface $output): int |
||
| 41 | { |
||
| 42 | $videos = $this->em->getRepository(Video::class)->findBy(['isActive' => true, 'type' => VideoType::TYPE_YOUTUBE, 'title' => null]); |
||
| 43 | /** @var Video $video */ |
||
| 44 | foreach ($videos as $video) { |
||
| 45 | $this->youtubeDataHandler->process($video); |
||
| 46 | } |
||
| 47 | |||
| 48 | return Command::SUCCESS; |
||
| 49 | } |
||
| 51 |