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
91
91
* 3. exec
92
92
* 4. shell_exec
93
93
* @param string $command
94
- * @param string|null $cwd
95
94
* @param bool $returnStatus
95
+ * @param string|null $cwd
96
96
* @return array|string
97
97
*/
98
- public static function runCommand ($ command , string $ cwd = null , bool $ returnStatus = true )
98
+ public static function execute ($ command , bool $ returnStatus = true , string $ cwd = null )
99
99
{
100
100
$ exitStatus = 1 ;
101
101
@@ -214,7 +214,7 @@ public static function shIsAvailable(): bool
214
214
// $shell = 'echo $0';
215
215
$ checkCmd = "sh -c 'echo OK' " ;
216
216
217
- return self ::runCommand ($ checkCmd, '' , false ) === 'OK ' ;
217
+ return self ::execute ($ checkCmd , false ) === 'OK ' ;
218
218
}
219
219
220
220
/**
@@ -227,7 +227,7 @@ public static function bashIsAvailable(): bool
227
227
// $shell = 'echo $0';
228
228
$ checkCmd = "bash -c 'echo OK' " ;
229
229
230
- return self ::runCommand ($ checkCmd, '' , false ) === 'OK ' ;
230
+ return self ::execute ($ checkCmd , false ) === 'OK ' ;
231
231
}
232
232
233
233
/**
You can’t perform that action at this time.
0 commit comments