| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | 12 | public function createProcess($commandLine, $timeout = self::PROCESS_DEFAULT_TIMEOUT) |
|
| 36 | { |
||
| 37 | // support old (Symfony 2.7 to 4.1) and new (Symfony 4.2+) syntax to build Symfony Process instances. |
||
| 38 | 12 | $process = $this->useNewSyntax() ? Process::fromShellCommandline($commandLine) : new Process($commandLine); |
|
| 39 | 12 | $process->setTimeout($timeout); |
|
| 40 | |||
| 41 | 12 | return $process; |
|
| 42 | } |
||
| 56 |