core: add more strict_types

Signed-off-by: J0WI <J0WI@users.noreply.github.com>
This commit is contained in:
J0WI 2021-04-26 12:44:37 +02:00
parent a369933084
commit d1f23b0428
6 changed files with 17 additions and 2 deletions

View File

@ -1,4 +1,7 @@
<?php <?php
declare(strict_types=1);
/** /**
* @copyright 2018 Morris Jobke <hey@morrisjobke.de> * @copyright 2018 Morris Jobke <hey@morrisjobke.de>
* *

View File

@ -1,4 +1,7 @@
<?php <?php
declare(strict_types=1);
/** /**
* @copyright 2020 Morris Jobke <hey@morrisjobke.de> * @copyright 2020 Morris Jobke <hey@morrisjobke.de>
* *
@ -49,7 +52,7 @@ class CheckForUserCertificates extends QueuedJob {
/** /**
* Checks all user directories for old user uploaded certificates * Checks all user directories for old user uploaded certificates
*/ */
public function run($arguments) { public function run($arguments): void {
$uploadList = []; $uploadList = [];
$this->userManager->callForSeenUsers(function (IUser $user) use (&$uploadList) { $this->userManager->callForSeenUsers(function (IUser $user) use (&$uploadList) {
$userId = $user->getUID(); $userId = $user->getUID();

View File

@ -42,7 +42,7 @@ class CleanupLoginFlowV2 extends TimedJob {
$this->setInterval(3600); $this->setInterval(3600);
} }
protected function run($argument) { protected function run($argument): void {
$this->loginFlowV2Mapper->cleanup(); $this->loginFlowV2Mapper->cleanup();
} }
} }

View File

@ -1,4 +1,7 @@
<?php <?php
declare(strict_types=1);
/** /**
* @copyright Copyright (c) 2016, ownCloud, Inc. * @copyright Copyright (c) 2016, ownCloud, Inc.
* *

View File

@ -1,4 +1,7 @@
<?php <?php
declare(strict_types=1);
/** /**
* @copyright Copyright (c) 2016, ownCloud, Inc. * @copyright Copyright (c) 2016, ownCloud, Inc.
* *

View File

@ -1,4 +1,7 @@
<?php <?php
declare(strict_types=1);
/** /**
* @copyright Copyright (c) 2016, ownCloud, Inc. * @copyright Copyright (c) 2016, ownCloud, Inc.
* *