| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 34 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 35 | { |
||
| 36 | $url = $input->getArgument('url'); |
||
| 37 | $output->writeln("<info>Discovering feeds from {$url}</info>"); |
||
| 38 | $feedIo = Factory::create()->getFeedIo(); |
||
| 39 | $feeds = $feedIo->discover($url); |
||
| 40 | |||
| 41 | foreach ($feeds as $feed) { |
||
| 42 | $output->writeln("<info>found : {$feed}</info>"); |
||
| 43 | } |
||
| 44 | } |
||
| 45 | } |
||
| 46 |