From 67e3ecef98cceb947e8d3d5df7695f5f68ad0b6c Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Mon, 29 Jan 2024 16:10:31 +0100 Subject: chore: Cleanup Installer class as well MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- core/Command/Maintenance/Install.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'core') diff --git a/core/Command/Maintenance/Install.php b/core/Command/Maintenance/Install.php index 4401921dacb..84ac34528f1 100644 --- a/core/Command/Maintenance/Install.php +++ b/core/Command/Maintenance/Install.php @@ -75,7 +75,6 @@ class Install extends Command { protected function execute(InputInterface $input, OutputInterface $output): int { // validate the environment - $server = \OC::$server; $setupHelper = \OCP\Server::get(\OC\Setup::class); $sysInfo = $setupHelper->getSystemInfo(true); $errors = $sysInfo['errors']; @@ -198,9 +197,9 @@ class Install extends Command { /** * @param OutputInterface $output - * @param $errors + * @param array $errors */ - protected function printErrors(OutputInterface $output, $errors) { + protected function printErrors(OutputInterface $output, array $errors): void { foreach ($errors as $error) { if (is_array($error)) { $output->writeln('' . $error['error'] . ''); -- cgit v1.2.3