summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2021-04-28 09:28:19 +0200
committerGitHub <noreply@github.com>2021-04-28 09:28:19 +0200
commit6a5d89c1ac2e24301b3c7cdc46b7302e26c4d09f (patch)
tree9bbb31893aef4db98c5729e48ffa444a64621cf8 /core
parenta0583771694b80bab067b51fb3dd98a159a2454f (diff)
parent8323cbb9e5acb72f5127d95b45d80733cda2e6f2 (diff)
downloadnextcloud-server-6a5d89c1ac2e24301b3c7cdc46b7302e26c4d09f.tar.gz
nextcloud-server-6a5d89c1ac2e24301b3c7cdc46b7302e26c4d09f.zip
Merge pull request #26758 from J0WI/more-strict
Some more strict_types
Diffstat (limited to 'core')
-rw-r--r--core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php3
-rw-r--r--core/BackgroundJobs/CheckForUserCertificates.php5
-rw-r--r--core/BackgroundJobs/CleanupLoginFlowV2.php2
-rw-r--r--core/register_command.php3
-rw-r--r--core/routes.php3
-rw-r--r--core/strings.php3
6 files changed, 17 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();
}
}
diff --git a/core/register_command.php b/core/register_command.php
index 8741d8d1abe..c9e86052197 100644
--- a/core/register_command.php
+++ b/core/register_command.php
@@ -1,4 +1,7 @@
<?php
+
+declare(strict_types=1);
+
/**
* @copyright Copyright (c) 2016, ownCloud, Inc.
*
diff --git a/core/routes.php b/core/routes.php
index 5bc4075315a..791fe8c74ff 100644
--- a/core/routes.php
+++ b/core/routes.php
@@ -1,4 +1,7 @@
<?php
+
+declare(strict_types=1);
+
/**
* @copyright Copyright (c) 2016, ownCloud, Inc.
*
diff --git a/core/strings.php b/core/strings.php
index f59b5c8265a..fa23fb1ac65 100644
--- a/core/strings.php
+++ b/core/strings.php
@@ -1,4 +1,7 @@
<?php
+
+declare(strict_types=1);
+
/**
* @copyright Copyright (c) 2016, ownCloud, Inc.
*