| Conditions | 2 |
| Paths | 2 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 4 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 21 | 1 | public function create(string $commandLine): Process |
|
| 22 | { |
||
| 23 | // See https://github.com/composer/composer/blob/1.10.17/src/Composer/Util/ProcessExecutor.php#L68:L72 |
||
| 24 | 1 | return method_exists(Process::class, 'fromShellCommandline') |
|
| 25 | 1 | ? Process::fromShellCommandline($commandLine) // Symfony >= 4.2 |
|
| 26 | 1 | : new Process($commandLine); // Symfony < 4.2 |
|
|
|
|||
| 27 | } |
||
| 29 |