From 39cd51a3f901e9d680b036ffe7bd0ed6435d68ca Mon Sep 17 00:00:00 2001 From: Yassine Guedidi Date: Sat, 3 Sep 2022 02:54:30 +0200 Subject: [PATCH] Make InstallCommand properties and methods private --- .../CoreBundle/Command/InstallCommand.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Wallabag/CoreBundle/Command/InstallCommand.php b/src/Wallabag/CoreBundle/Command/InstallCommand.php index 17f97b9b7..1dafde40d 100644 --- a/src/Wallabag/CoreBundle/Command/InstallCommand.php +++ b/src/Wallabag/CoreBundle/Command/InstallCommand.php @@ -26,17 +26,17 @@ class InstallCommand extends ContainerAwareCommand /** * @var InputInterface */ - protected $defaultInput; + private $defaultInput; /** * @var SymfonyStyle */ - protected $io; + private $io; /** * @var array */ - protected $functionExists = [ + private $functionExists = [ 'curl_exec', 'curl_multi_init', ]; @@ -81,7 +81,7 @@ class InstallCommand extends ContainerAwareCommand $this->io->success('You can now configure your web server, see https://doc.wallabag.org'); } - protected function checkRequirements() + private function checkRequirements() { $this->io->section('Step 1 of 4: Checking system requirements.'); @@ -181,7 +181,7 @@ class InstallCommand extends ContainerAwareCommand return $this; } - protected function setupDatabase() + private function setupDatabase() { $this->io->section('Step 2 of 4: Setting up database.'); @@ -249,7 +249,7 @@ class InstallCommand extends ContainerAwareCommand return $this; } - protected function setupAdmin() + private function setupAdmin() { $this->io->section('Step 3 of 4: Administration setup.'); @@ -284,7 +284,7 @@ class InstallCommand extends ContainerAwareCommand return $this; } - protected function setupConfig() + private function setupConfig() { $this->io->section('Step 4 of 4: Config setup.'); $em = $this->getContainer()->get(EntityManagerInterface::class); @@ -320,7 +320,7 @@ class InstallCommand extends ContainerAwareCommand * @param string $command * @param array $parameters Parameters to this command (usually 'force' => true) */ - protected function runCommand($command, $parameters = []) + private function runCommand($command, $parameters = []) { if (!$this->runOtherCommands) { return $this;