diff options
author | J0WI <J0WI@users.noreply.github.com> | 2021-04-26 13:44:37 +0300 |
---|---|---|
committer | J0WI <J0WI@users.noreply.github.com> | 2021-04-26 13:44:37 +0300 |
commit | d1f23b0428c04f8710987bb30183d8c7cc6d3261 (patch) | |
tree | 95835a32feb54c985c33240d929ef84ef85dedcb /core/BackgroundJobs | |
parent | a3699330846f8ecb18ab3593884d011b032ae485 (diff) |
core: add more strict_types
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
Diffstat (limited to 'core/BackgroundJobs')
-rw-r--r-- | core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php | 3 | ||||
-rw-r--r-- | core/BackgroundJobs/CheckForUserCertificates.php | 5 | ||||
-rw-r--r-- | core/BackgroundJobs/CleanupLoginFlowV2.php | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php b/core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php index 44a14352cd9..ee476633a97 100644 --- a/core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php +++ b/core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php @@ -1,4 +1,7 @@ <?php + +declare(strict_types=1); + /** * @copyright 2018 Morris Jobke <hey@morrisjobke.de> * diff --git a/core/BackgroundJobs/CheckForUserCertificates.php b/core/BackgroundJobs/CheckForUserCertificates.php index 8b106c8ce74..d8892e03b5b 100644 --- a/core/BackgroundJobs/CheckForUserCertificates.php +++ b/core/BackgroundJobs/CheckForUserCertificates.php @@ -1,4 +1,7 @@ <?php + +declare(strict_types=1); + /** * @copyright 2020 Morris Jobke <hey@morrisjobke.de> * @@ -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 9fee3550c8e..69e7fe71959 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(); } } |