| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 43 | 3 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 44 | { |
||
| 45 | 3 | $file = $input->getArgument(self::ARG_CONFIG_PATH); |
|
| 46 | |||
| 47 | 3 | if (! is_readable($file)) { |
|
| 48 | 1 | throw new \RuntimeException(sprintf('<error>File `%s` cannot be read!</error>', $file)); |
|
| 49 | } |
||
| 50 | |||
| 51 | 2 | $content = file_get_contents($file); |
|
| 52 | |||
| 53 | 2 | $output->writeln(sprintf('<info>Configuration located in `%s`.</info>', $file)); |
|
| 54 | 2 | $output->writeln($content); |
|
| 55 | 2 | } |
|
| 56 | } |
||
| 57 |