Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/Command/Background/Ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
namespace OC\Core\Command\Background;

class Ajax extends Base {
protected function getMode() {
protected function getMode(): string {
return 'ajax';
}
}
3 changes: 2 additions & 1 deletion core/Command/Background/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct(
parent::__construct();
}

protected function configure() {
protected function configure(): void {
$mode = $this->getMode();
$this
->setName("background:$mode")
Expand All @@ -59,6 +59,7 @@ protected function configure() {
*
* @param InputInterface $input
* @param OutputInterface $output
* @return int
*/
protected function execute(InputInterface $input, OutputInterface $output): int {
$mode = $this->getMode();
Expand Down
2 changes: 1 addition & 1 deletion core/Command/Background/Cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
namespace OC\Core\Command\Background;

class Cron extends Base {
protected function getMode() {
protected function getMode(): string {
return 'cron';
}
}
2 changes: 1 addition & 1 deletion core/Command/Background/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
return 0;
}

protected function printJobInfo(int $jobId, IJob $job, OutputInterface$output): void {
protected function printJobInfo(int $jobId, IJob $job, OutputInterface $output): void {
$row = $this->jobList->getDetailsById($jobId);

$lastRun = new \DateTime();
Expand Down
2 changes: 1 addition & 1 deletion core/Command/Background/WebCron.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
namespace OC\Core\Command\Background;

class WebCron extends Base {
protected function getMode() {
protected function getMode(): string {
return 'webcron';
}
}