| Conditions | 2 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function getCommandStdOut($command, $cwd, $default = '') |
||
| 11 | { |
||
| 12 | $process = new \Symfony\Component\Process\Process($command, $cwd); |
||
| 13 | |||
| 14 | $process->setTimeout(null); |
||
| 15 | |||
| 16 | try { |
||
| 17 | $process->mustRun(); |
||
| 18 | |||
| 19 | return $process->getOutput(); |
||
| 20 | } catch (\Symfony\Component\Process\Exception\ProcessFailedException $exception) { |
||
| 21 | return $default; |
||
| 22 | } |
||
| 25 |