Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
44 | protected function composerRunCommand($command) |
||
45 | { |
||
46 | $this->info("Run \"$command\"."); |
||
|
|||
47 | |||
48 | $output = []; |
||
49 | exec($command, $output, $returnStatusCode); |
||
50 | |||
51 | if ($returnStatusCode !== 0) { |
||
52 | throw RuntimeException::commandExecutionFailed($command, $returnStatusCode); |
||
53 | } |
||
54 | |||
55 | $this->info("\"$command\" was successfully ran."); |
||
56 | } |
||
58 |