| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 53 | protected function execute(InputInterface $input, OutputInterface $output): int |
||
| 54 | { |
||
| 55 | try { |
||
| 56 | $this->configurationValidator->validate(); |
||
| 57 | } catch (Exception $e) { |
||
| 58 | $output->writeln('Configuration is invalid.'); |
||
| 59 | $output->writeln(sprintf('<fg=red>%s</>', $e->getMessage())); |
||
| 60 | return 1; |
||
| 61 | } |
||
| 62 | |||
| 63 | $output->writeln('Configuration is valid.'); |
||
| 64 | return 0; |
||
| 65 | } |
||
| 67 |