File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -91,11 +91,11 @@ public static function run(string $command, string $cwd = null): array
9191 * 3. exec
9292 * 4. shell_exec
9393 * @param string $command
94- * @param string|null $cwd
9594 * @param bool $returnStatus
95+ * @param string|null $cwd
9696 * @return array|string
9797 */
98- public static function runCommand ($ command , string $ cwd = null , bool $ returnStatus = true )
98+ public static function execute ($ command , bool $ returnStatus = true , string $ cwd = null )
9999 {
100100 $ exitStatus = 1 ;
101101
@@ -214,7 +214,7 @@ public static function shIsAvailable(): bool
214214 // $shell = 'echo $0';
215215 $ checkCmd = "sh -c 'echo OK' " ;
216216
217- return self ::runCommand ($ checkCmd, '' , false ) === 'OK ' ;
217+ return self ::execute ($ checkCmd , false ) === 'OK ' ;
218218 }
219219
220220 /**
@@ -227,7 +227,7 @@ public static function bashIsAvailable(): bool
227227 // $shell = 'echo $0';
228228 $ checkCmd = "bash -c 'echo OK' " ;
229229
230- return self ::runCommand ($ checkCmd, '' , false ) === 'OK ' ;
230+ return self ::execute ($ checkCmd , false ) === 'OK ' ;
231231 }
232232
233233 /**
You can’t perform that action at this time.
0 commit comments