From e329bb55acd03ad6012cf9818f919ca88cddd259 Mon Sep 17 00:00:00 2001 From: Gabriel Caruso Date: Mon, 23 Apr 2018 02:19:32 -0300 Subject: [PATCH] Use array_key_exists instead of in_array + array_keys --- system/src/Grav/Console/Gpm/InstallCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Console/Gpm/InstallCommand.php b/system/src/Grav/Console/Gpm/InstallCommand.php index 3281fd923a..d7e932e4ec 100644 --- a/system/src/Grav/Console/Gpm/InstallCommand.php +++ b/system/src/Grav/Console/Gpm/InstallCommand.php @@ -182,7 +182,7 @@ protected function serve() //We're done installing dependencies. Install the actual packages foreach ($this->data as $data) { foreach ($data as $package_name => $package) { - if (in_array($package_name, array_keys($dependencies))) { + if (array_key_exists($package_name, $dependencies)) { $this->output->writeln("Package " . $package_name . " already installed as dependency"); } else { $is_valid_destination = Installer::isValidDestination($this->destination . DS . $package->install_path);