mirror of
https://github.com/mrclay/minify.git
synced 2025-08-13 01:24:51 +02:00
use in_array instead of array_search (clearer intent)
This commit is contained in:
@@ -103,7 +103,7 @@ class Minify_NailgunClosureCompiler extends Minify_ClosureCompiler
|
||||
{
|
||||
$serverCommand = implode(' ', $this->getServerCommandLine());
|
||||
$psCommand = $this->shell("ps -o cmd= -C " . self::$javaExecutable);
|
||||
if (array_search($serverCommand, $psCommand) !== false) {
|
||||
if (in_array($serverCommand, $psCommand, true)) {
|
||||
// already started!
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user