| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | protected function execute(InputInterface $input, OutputInterface $output) { |
||
| 25 | $payload = $this->getApplication()->deploidStructureValidate($input->getArgument('path')); |
||
|
|
|||
| 26 | if ($payload->getType() == Payload::STRUCTURE_VALIDATE_FAIL) { |
||
| 27 | $output->writeln($payload->getMessage()); |
||
| 28 | return $payload->getCode(); |
||
| 29 | } |
||
| 30 | |||
| 31 | $payload = $this->getApplication()->deploidReleaseRemove($input->getArgument('release'), $input->getArgument('path')); |
||
| 32 | $output->writeln($payload->getMessage()); |
||
| 33 | return $payload->getCode(); |
||
| 34 | } |
||
| 36 | } |