@@ -71,8 +71,8 @@ |
||
| 71 | 71 | public function getCommand(): string |
| 72 | 72 | { |
| 73 | 73 | return $this->cmd |
| 74 | - . (count($this->options) ? ' ' . implode(' ', $this->options) : '') |
|
| 75 | - . ($this->isSilent ? ' 2> /dev/null' : ''); |
|
| 74 | + . (count($this->options) ? ' ' . implode(' ', $this->options) : '') |
|
| 75 | + . ($this->isSilent ? ' 2> /dev/null' : ''); |
|
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | /** |
@@ -53,20 +53,20 @@ |
||
| 53 | 53 | public static function detectCmdLocation(string $cmd, string $path = '', array $optionalLocations = []): string |
| 54 | 54 | { |
| 55 | 55 | $detectionSteps = [ |
| 56 | - function ($cmd) use ($path) { |
|
| 56 | + function($cmd) use ($path) { |
|
| 57 | 57 | if (!empty($path)) { |
| 58 | 58 | return self::detectCmdLocationInPath($cmd, $path); |
| 59 | 59 | } |
| 60 | 60 | return ''; |
| 61 | 61 | }, |
| 62 | - function ($cmd) { |
|
| 62 | + function($cmd) { |
|
| 63 | 63 | return self::detectCmdLocationWithWhich($cmd); |
| 64 | 64 | }, |
| 65 | - function ($cmd) { |
|
| 65 | + function($cmd) { |
|
| 66 | 66 | $paths = explode(PATH_SEPARATOR, self::getEnvPath()); |
| 67 | 67 | return self::detectCmdLocationInPaths($cmd, $paths); |
| 68 | 68 | }, |
| 69 | - function ($cmd) use ($optionalLocations) { |
|
| 69 | + function($cmd) use ($optionalLocations) { |
|
| 70 | 70 | return self::detectCmdLocationInPaths($cmd, $optionalLocations); |
| 71 | 71 | } |
| 72 | 72 | ]; |