Skip to content

Commit cf0ebbd

Browse files
committed
rename runCommand to execute
1 parent e10c085 commit cf0ebbd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Sys.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)