diff options
author | Joas Schilling <coding@schilljs.com> | 2020-06-26 14:54:51 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-06-26 14:54:51 +0200 |
commit | ab21d69903c4360cbce59741624b6e765e3bd35f (patch) | |
tree | 8bed2d6af0d4bfef3766e356acc570b93eb9feb3 /core/Command/Log | |
parent | ed4afa55c1ccaef140ac310258ad837bf6af9557 (diff) | |
download | nextcloud-server-ab21d69903c4360cbce59741624b6e765e3bd35f.tar.gz nextcloud-server-ab21d69903c4360cbce59741624b6e765e3bd35f.zip |
Add return value to all commands
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/Command/Log')
-rw-r--r-- | core/Command/Log/File.php | 3 | ||||
-rw-r--r-- | core/Command/Log/Manage.php | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/core/Command/Log/File.php b/core/Command/Log/File.php index 0f7fa9c1a47..5ab3cc16e46 100644 --- a/core/Command/Log/File.php +++ b/core/Command/Log/File.php @@ -72,7 +72,7 @@ class File extends Command implements Completion\CompletionAwareInterface { ; } - protected function execute(InputInterface $input, OutputInterface $output) { + protected function execute(InputInterface $input, OutputInterface $output): int { $toBeSet = []; if ($input->getOption('enable')) { @@ -115,6 +115,7 @@ class File extends Command implements Completion\CompletionAwareInterface { $rotateString = 'disabled'; } $output->writeln('Rotate at: '.$rotateString); + return 0; } /** diff --git a/core/Command/Log/Manage.php b/core/Command/Log/Manage.php index 3eb24a44178..3a2cd64a9a0 100644 --- a/core/Command/Log/Manage.php +++ b/core/Command/Log/Manage.php @@ -73,7 +73,7 @@ class Manage extends Command implements CompletionAwareInterface { ; } - protected function execute(InputInterface $input, OutputInterface $output) { + protected function execute(InputInterface $input, OutputInterface $output): int { // collate config setting to the end, to avoid partial configuration $toBeSet = []; @@ -114,6 +114,7 @@ class Manage extends Command implements CompletionAwareInterface { $timezone = $this->config->getSystemValue('logtimezone', self::DEFAULT_TIMEZONE); $output->writeln('Log timezone: '.$timezone); + return 0; } /** |