| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| 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 | $releaseName = date($this->getApplication()->getReleaseNameFormat()); |
||
| 31 | |||
| 32 | $payload = $this->getApplication()->deploidReleaseCreate($releaseName, $input->getArgument('path')); |
||
| 33 | $output->writeln($payload->getMessage()); |
||
| 34 | return $payload->getCode(); |
||
| 35 | } |
||
| 37 | } |