From 2a8aaf9c0a4bdd4b1046750e360d03b9a2aabc83 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Tue, 28 Apr 2026 17:24:56 +0200 Subject: [PATCH] chore: adjust code style Signed-off-by: Ferdinand Thiessen --- core/Command/App/Remove.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/core/Command/App/Remove.php b/core/Command/App/Remove.php index 13e2990d850..7d5b5b0de69 100644 --- a/core/Command/App/Remove.php +++ b/core/Command/App/Remove.php @@ -35,11 +35,11 @@ class Remove extends Command implements CompletionAwareInterface { ->setName('app:remove') ->setDescription('Remove an app from this Nextcloud instance') ->setHelp( - "Removes the specified app and, if present, runs the app's uninstall steps.\n" . - "\n" . - "By default, this command runs the app's uninstall steps (which may delete data) and then removes the app files.\n" . - "Use `--keep-data` to skip uninstall steps and preserve app data (database tables, configuration, and stored files).\n" . - "Note: Some apps may still preserve data either way, depending on their uninstall implementation.\n" + "Removes the specified app and, if present, runs the app's uninstall steps.\n" + . "\n" + . "By default, this command runs the app's uninstall steps (which may delete data) and then removes the app files.\n" + . "Use `--keep-data` to skip uninstall steps and preserve app data (database tables, configuration, and stored files).\n" + . "Note: Some apps may still preserve data either way, depending on their uninstall implementation.\n" ) ->addArgument( 'app-id', @@ -55,8 +55,8 @@ class Remove extends Command implements CompletionAwareInterface { } protected function execute(InputInterface $input, OutputInterface $output): int { - $appId = (string) $input->getArgument('app-id'); - $keepData = (bool) $input->getOption('keep-data'); + $appId = (string)$input->getArgument('app-id'); + $keepData = (bool)$input->getOption('keep-data'); // Prevent removal of shipped/core apps if ($this->manager->isShipped($appId)) { @@ -111,7 +111,7 @@ class Remove extends Command implements CompletionAwareInterface { $this->logger->error($message, [ 'app' => 'CLI', ]); return self::FAILURE; } - + $message = "Removed app '$appId' (version $appVersion)."; $output->writeln($message); $this->logger->info($message, [ 'app' => 'CLI', ]);