Conditions | 4 |
Paths | 6 |
Total Lines | 22 |
Code Lines | 14 |
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 | $files = $archive->getFiles($input->getArgument('filter')); |
||
27 | |||
28 | $errored = []; |
||
29 | foreach ($files as $file) { |
||
30 | $output->write($file . ' ... '); |
||
31 | if ($archive->test($file, $hash) === true) { |
||
32 | $output->writeln('<info>ok</info>'); |
||
33 | } else { |
||
34 | $errored[] = $file; |
||
35 | $output->writeln('<error>error</error>'); |
||
36 | var_dump($hash[$file]); |
||
|
|||
37 | } |
||
38 | } |
||
39 | |||
40 | if (!empty($errored)) { |
||
41 | return 1; |
||
42 | } |
||
43 | |||
44 | return 0; |
||
45 | } |
||
47 |