diff options
Diffstat (limited to 'core/Command/Maintenance/Mode.php')
-rw-r--r-- | core/Command/Maintenance/Mode.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Command/Maintenance/Mode.php b/core/Command/Maintenance/Mode.php index e78d7827fde..17580b8b331 100644 --- a/core/Command/Maintenance/Mode.php +++ b/core/Command/Maintenance/Mode.php @@ -23,7 +23,6 @@ * along with this program. If not, see <http://www.gnu.org/licenses/> * */ - namespace OC\Core\Command\Maintenance; use OCP\IConfig; @@ -61,7 +60,7 @@ class Mode extends Command { ); } - protected function execute(InputInterface $input, OutputInterface $output) { + protected function execute(InputInterface $input, OutputInterface $output): int { $maintenanceMode = $this->config->getSystemValueBool('maintenance'); if ($input->getOption('on')) { if ($maintenanceMode === false) { @@ -84,5 +83,6 @@ class Mode extends Command { $output->writeln('Maintenance mode is currently disabled'); } } + return 0; } } |