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