| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 40 | 2 | public function execute(TaskExecutionInterface $execution) |
|
| 41 | { |
||
| 42 | 2 | $process = ProcessBuilder::create([$this->consoleFile, 'task:execute', $execution->getUuid()])->getProcess(); |
|
| 43 | |||
| 44 | 2 | $process->run(); |
|
| 45 | |||
| 46 | 2 | if (!$process->isSuccessful()) { |
|
| 47 | 1 | throw new ProcessException($process->getErrorOutput()); |
|
| 48 | } |
||
| 49 | |||
| 50 | 1 | return $this->extractResult($process->getOutput()); |
|
| 51 | } |
||
| 52 | |||
| 79 |