Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
39 | 2 | private function buildCommand(Argument ...$arguments): string |
|
40 | { |
||
41 | 2 | $fullCommand = []; |
|
42 | |||
43 | 2 | foreach ($arguments as $argument) { |
|
44 | 2 | $fullCommand[] = escapeshellarg($argument->getArgument()); |
|
45 | } |
||
46 | |||
47 | 2 | return $this->binary->getExecutable() . ' ' . implode(' ', $fullCommand); |
|
48 | } |
||
49 | } |
||
50 |