| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | protected function runCommand(Application $application, string $command, array $parameters = []): void |
||
| 17 | { |
||
| 18 | $exit = $application->run( |
||
| 19 | new ArrayInput(\array_merge(['command' => $command], $parameters)), |
||
| 20 | $output = new BufferedOutput() |
||
| 21 | ); |
||
| 22 | |||
| 23 | if (0 !== $exit) { |
||
| 24 | throw new \RuntimeException(\sprintf('Error running "%s": %s', $command, $output->fetch())); |
||
| 25 | } |
||
| 28 |