From eccaf4acff051bb927e8222b166f21ffdd02cd29 Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Mon, 7 Dec 2020 13:36:51 +0200 Subject: [PATCH] CLI command cleanup --- system/src/Grav/Console/Cli/InstallCommand.php | 3 --- system/src/Grav/Console/ConsoleTrait.php | 1 + system/src/Grav/Console/Gpm/InstallCommand.php | 3 --- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/system/src/Grav/Console/Cli/InstallCommand.php b/system/src/Grav/Console/Cli/InstallCommand.php index eca0ff5b4..01a98276b 100644 --- a/system/src/Grav/Console/Cli/InstallCommand.php +++ b/system/src/Grav/Console/Cli/InstallCommand.php @@ -23,9 +23,6 @@ class InstallCommand extends ConsoleCommand /** @var array */ protected $config; - /** @var array */ - protected $local_config; - /** @var string */ protected $destination; diff --git a/system/src/Grav/Console/ConsoleTrait.php b/system/src/Grav/Console/ConsoleTrait.php index 954995f50..1bb93a352 100644 --- a/system/src/Grav/Console/ConsoleTrait.php +++ b/system/src/Grav/Console/ConsoleTrait.php @@ -146,6 +146,7 @@ trait ConsoleTrait $file = YamlFile::instance($local_config_file); $this->local_config = $file->content(); $file->free(); + return $local_config_file; } diff --git a/system/src/Grav/Console/Gpm/InstallCommand.php b/system/src/Grav/Console/Gpm/InstallCommand.php index fc2ad4755..31a1af6a1 100644 --- a/system/src/Grav/Console/Gpm/InstallCommand.php +++ b/system/src/Grav/Console/Gpm/InstallCommand.php @@ -49,9 +49,6 @@ class InstallCommand extends ConsoleCommand /** @var string */ protected $tmp; - /** @var array */ - protected $local_config; - /** @var bool */ protected $use_symlinks;