We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 3 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
41 | private function runConsoleCommand($command) |
||
42 | { |
||
43 | $process = new Process($command, null, null, null, 60, null); |
||
44 | $process->run(function ($type, $buffer) { |
||
45 | if (Process::ERR === $type) { |
||
46 | $this->line($buffer); |
||
47 | } else { |
||
48 | $this->line($buffer); |
||
49 | } |
||
50 | }); |
||
51 | |||
52 | // executes after the command finishes |
||
53 | if (! $process->isSuccessful()) { |
||
54 | throw new ProcessFailedException($process); |
||
55 | } |
||
58 |