Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
21 | 4 | public function execute(InputInterface $input, OutputInterface $output) |
|
22 | { |
||
23 | 4 | $question = new SimpleQuestion('<question>Enter your project description:</question>'); |
|
24 | 4 | $question->setValidator($this->buildValidator()); |
|
25 | 4 | $question->setMaxAttempts(3); |
|
26 | |||
27 | 4 | $this->getProject()->setDescription($this->ask( |
|
28 | 4 | $input, |
|
29 | 4 | $output, |
|
30 | $question |
||
31 | 4 | )); |
|
32 | |||
33 | 4 | return $this->getProject()->getDescription() ? ITask::NO_ERROR_CODE : ITask::BLOCKING_ERROR_CODE; |
|
34 | } |
||
35 | |||
49 |