| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public static function createCommandWithArguments(string $key, $paths = '.') : CommandInterface |
||
| 32 | { |
||
| 33 | $pathObjects = []; |
||
| 34 | if (!is_array($paths)) { |
||
| 35 | $paths = (array) $paths; |
||
| 36 | } |
||
| 37 | foreach ($paths as $path) { |
||
| 38 | $pathObjects[] = new Path($path); |
||
| 39 | } |
||
| 40 | |||
| 41 | return new self( |
||
| 42 | $key, |
||
| 43 | $pathObjects |
||
| 44 | ); |
||
| 47 |