| Conditions | 3 |
| Paths | 5 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | 3 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 36 | { |
||
| 37 | 3 | $output->write('Generating enum doctrine type files...'); |
|
| 38 | try { |
||
| 39 | 3 | $this->registrator->registerEnumTypes($this->enums); |
|
| 40 | 1 | $output->writeln(' <info>Success!</info>'); |
|
| 41 | 3 | } catch (InvalidArgumentException $e) { |
|
| 42 | 2 | $output->writeln(' <error>Error!</error>'); |
|
| 43 | 2 | if ($output->isVerbose()) { |
|
| 44 | 1 | $this->getApplication()->renderException($e, $output); |
|
| 45 | 1 | } |
|
| 46 | } |
||
| 47 | 3 | } |
|
| 48 | } |
||
| 49 |