diff options
Diffstat (limited to 'core/Command/Maintenance/Repair.php')
-rw-r--r-- | core/Command/Maintenance/Repair.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/Command/Maintenance/Repair.php b/core/Command/Maintenance/Repair.php index df5ce068b4e..2a3d7a908e2 100644 --- a/core/Command/Maintenance/Repair.php +++ b/core/Command/Maintenance/Repair.php @@ -9,7 +9,7 @@ * @author Roeland Jago Douma <roeland@famdouma.nl> * @author Temtaime <temtaime@gmail.com> * @author Thomas Müller <thomas.mueller@tmit.eu> - * @author Vincent Petry <pvince81@owncloud.com> + * @author Vincent Petry <vincent@nextcloud.com> * * @license AGPL-3.0 * @@ -26,7 +26,6 @@ * along with this program. If not, see <http://www.gnu.org/licenses/> * */ - namespace OC\Core\Command\Maintenance; use Exception; @@ -79,7 +78,7 @@ class Repair extends Command { 'Use this option when you want to include resource and load expensive tasks'); } - protected function execute(InputInterface $input, OutputInterface $output) { + protected function execute(InputInterface $input, OutputInterface $output): int { $repairSteps = $this->repair::getRepairSteps(); if ($input->getOption('include-expensive')) { @@ -126,6 +125,7 @@ class Repair extends Command { $this->repair->run(); $this->config->setSystemValue('maintenance', $maintenanceMode); + return 0; } public function handleRepairFeedBack($event) { @@ -153,7 +153,7 @@ class Repair extends Command { $this->output->writeln(' - WARNING: ' . $event->getArgument(0)); break; case '\OC\Repair::error': - $this->output->writeln(' - ERROR: ' . $event->getArgument(0)); + $this->output->writeln('<error> - ERROR: ' . $event->getArgument(0) . '</error>'); break; } } |