Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
23 | 3 | public function execute($command, OutputInterface $output = null) |
|
24 | { |
||
25 | 3 | $input = new StringInput($command); |
|
26 | |||
27 | 3 | $exitCode = $this->app->run($input, $output); |
|
28 | |||
29 | 3 | if ($exitCode != 0) { |
|
30 | 1 | throw new \RuntimeException( |
|
31 | 1 | sprintf('Command `%s` failed.', $command) |
|
32 | ); |
||
33 | } |
||
34 | |||
35 | 3 | return $exitCode; |
|
36 | } |
||
37 | |||
55 |