From 6caaeedf939b308eae037cb5b17b92257f8e7085 Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Tue, 23 Feb 2016 22:41:44 +0100 Subject: [PATCH] Lint --- system/src/Grav/Console/Gpm/InstallCommand.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/system/src/Grav/Console/Gpm/InstallCommand.php b/system/src/Grav/Console/Gpm/InstallCommand.php index 651a4c23d..220e910b3 100644 --- a/system/src/Grav/Console/Gpm/InstallCommand.php +++ b/system/src/Grav/Console/Gpm/InstallCommand.php @@ -10,7 +10,6 @@ use Grav\Console\ConsoleCommand; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Question\ConfirmationQuestion; -use Symfony\Component\Console\Question\ChoiceQuestion; use Symfony\Component\Yaml\Yaml; define('GIT_REGEX', '/http[s]?:\/\/(?:.*@)?(github|bitbucket)(?:.org|.com)\/.*\/(.*)/'); @@ -80,6 +79,11 @@ class InstallCommand extends ConsoleCommand ->setHelp('The install command allows to install plugins and themes'); } + /** + * Allows to set the GPM object, used for testing the class + * + * @param $gpm + */ public function setGpm($gpm) { $this->gpm = $gpm; @@ -190,6 +194,8 @@ class InstallCommand extends ConsoleCommand // clear cache after successful upgrade $this->clearCache(); + + return true; } /**