From d1f23b0428c04f8710987bb30183d8c7cc6d3261 Mon Sep 17 00:00:00 2001 From: J0WI Date: Mon, 26 Apr 2021 12:44:37 +0200 Subject: [PATCH] core: add more strict_types Signed-off-by: J0WI --- core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php | 3 +++ core/BackgroundJobs/CheckForUserCertificates.php | 5 ++++- core/BackgroundJobs/CleanupLoginFlowV2.php | 2 +- core/register_command.php | 3 +++ core/routes.php | 3 +++ core/strings.php | 3 +++ 6 files changed, 17 insertions(+), 2 deletions(-) diff --git a/core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php b/core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php index 44a14352cd..ee476633a9 100644 --- a/core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php +++ b/core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php @@ -1,4 +1,7 @@ * diff --git a/core/BackgroundJobs/CheckForUserCertificates.php b/core/BackgroundJobs/CheckForUserCertificates.php index 8b106c8ce7..d8892e03b5 100644 --- a/core/BackgroundJobs/CheckForUserCertificates.php +++ b/core/BackgroundJobs/CheckForUserCertificates.php @@ -1,4 +1,7 @@ * @@ -49,7 +52,7 @@ class CheckForUserCertificates extends QueuedJob { /** * Checks all user directories for old user uploaded certificates */ - public function run($arguments) { + public function run($arguments): void { $uploadList = []; $this->userManager->callForSeenUsers(function (IUser $user) use (&$uploadList) { $userId = $user->getUID(); diff --git a/core/BackgroundJobs/CleanupLoginFlowV2.php b/core/BackgroundJobs/CleanupLoginFlowV2.php index 9fee3550c8..69e7fe7195 100644 --- a/core/BackgroundJobs/CleanupLoginFlowV2.php +++ b/core/BackgroundJobs/CleanupLoginFlowV2.php @@ -42,7 +42,7 @@ class CleanupLoginFlowV2 extends TimedJob { $this->setInterval(3600); } - protected function run($argument) { + protected function run($argument): void { $this->loginFlowV2Mapper->cleanup(); } } diff --git a/core/register_command.php b/core/register_command.php index 2a68cbcbe8..4d0e0ceb99 100644 --- a/core/register_command.php +++ b/core/register_command.php @@ -1,4 +1,7 @@