| Conditions | 3 |
| Paths | 3 |
| Total Lines | 27 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | protected function runFromCommands(array $commands, $values = [], bool $addAiOption = false): int|bool |
||
| 15 | { |
||
| 16 | /** @var \Symfony\Component\Console\Helper\QuestionHelper $questionHelper */ |
||
| 17 | $questionHelper = $this->getHelper('question'); |
||
| 18 | |||
| 19 | $command = OutputHelper::renderCommands( |
||
| 20 | $this->getOutput(), |
||
| 21 | $this->getInput(), |
||
| 22 | $questionHelper, |
||
| 23 | $commands, |
||
| 24 | null, |
||
| 25 | -1, |
||
| 26 | true, |
||
| 27 | $addAiOption |
||
| 28 | ); |
||
| 29 | |||
| 30 | if ($command === false) { |
||
|
|
|||
| 31 | return SymfonyCommand::FAILURE; |
||
| 32 | } |
||
| 33 | |||
| 34 | if ($command === true) { |
||
| 35 | return true; |
||
| 36 | } |
||
| 37 | |||
| 38 | $this->getOutput()->writeln(''); |
||
| 39 | |||
| 40 | return $this->runCommand($command, $values); |
||
| 41 | } |
||
| 43 |