| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function execute(InputInterface $input, OutputInterface $output) |
||
| 24 | { |
||
| 25 | $archive = $this->getArchive($input, $output); |
||
| 26 | $test_result = $archive->test($input->getArgument('filter')); |
||
|
|
|||
| 27 | if ($test_result === true) { |
||
| 28 | $output->writeln('<info>Archive is ok!</info>'); |
||
| 29 | } else { |
||
| 30 | $output->writeln('<error>Failed:</error>:'); |
||
| 31 | array_walk($test_result, static function ($file) use ($output) { |
||
| 32 | $output->writeln('- ' . $file); |
||
| 33 | }); |
||
| 34 | } |
||
| 35 | return 0; |
||
| 36 | } |
||
| 38 |