| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 46 | protected function execute(InputInterface $input, OutputInterface $output) : int |
||
| 47 | { |
||
| 48 | $mode = JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE; |
||
| 49 | |||
| 50 | if ($input->getOption('pretty')) { |
||
| 51 | $mode |= JSON_PRETTY_PRINT; |
||
| 52 | } |
||
| 53 | |||
| 54 | $output->writeln(json_encode($this->container->get('openapi')->toArray(), $mode)); |
||
| 55 | |||
| 56 | return 0; |
||
| 57 | } |
||
| 59 |