1
0
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:
Elan Ruusamäe
2018-01-05 14:34:43 +02:00
parent d3decb27e1
commit f9c96b6a3c

View File

@@ -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;
}