| Conditions | 3 |
| Paths | 3 |
| Total Lines | 24 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 20 | { |
||
| 21 | $configuration = $this->getConfiguration($input); |
||
| 22 | |||
| 23 | if ($configuration === null) |
||
| 24 | { |
||
| 25 | $output->writeln(sprintf('This does not seem to be an archive!')); |
||
| 26 | |||
| 27 | return; |
||
| 28 | } |
||
| 29 | |||
| 30 | $archivr = new ArchivR($configuration); |
||
| 31 | |||
| 32 | $operationCollection = $archivr->buildOperationCollection(); |
||
| 33 | |||
| 34 | if (count($operationCollection)) |
||
| 35 | { |
||
| 36 | $output->writeln(sprintf('<info>There are %d outstanding operations!</info>', count($operationCollection))); |
||
| 37 | } |
||
| 38 | else |
||
| 39 | { |
||
| 40 | $output->writeln('<info>Everything is up to date!</info>'); |
||
| 41 | } |
||
| 42 | } |
||
| 43 | } |
||
| 44 |