| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | protected function execute(InputInterface $in, OutputInterface $output) { |
||
| 40 | $in = $in->getArgument('input'); |
||
| 41 | // $out = $in->getArgument('output'); |
||
| 42 | |||
| 43 | $code = file_exists($in) ? file_get_contents($in) : null; |
||
| 44 | |||
| 45 | if ($code !== null) { |
||
| 46 | $formatter = new Formatter(); |
||
| 47 | $beauty = $formatter->format($code); |
||
| 48 | |||
| 49 | echo $output->writeln($beauty); |
||
| 50 | } |
||
| 51 | } |
||
| 52 | |||
| 54 |