aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/lib/Settings/Admin/Security.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings/lib/Settings/Admin/Security.php')
-rw-r--r--apps/settings/lib/Settings/Admin/Security.php23
1 files changed, 9 insertions, 14 deletions
diff --git a/apps/settings/lib/Settings/Admin/Security.php b/apps/settings/lib/Settings/Admin/Security.php
index 5e4366511eb..c4efdb478c7 100644
--- a/apps/settings/lib/Settings/Admin/Security.php
+++ b/apps/settings/lib/Settings/Admin/Security.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
@@ -14,22 +15,16 @@ use OCP\IUserManager;
use OCP\Settings\ISettings;
class Security implements ISettings {
- private IManager $manager;
- private IUserManager $userManager;
private MandatoryTwoFactor $mandatoryTwoFactor;
- private IInitialState $initialState;
- private IURLGenerator $urlGenerator;
- public function __construct(IManager $manager,
- IUserManager $userManager,
+ public function __construct(
+ private IManager $manager,
+ private IUserManager $userManager,
MandatoryTwoFactor $mandatoryTwoFactor,
- IInitialState $initialState,
- IURLGenerator $urlGenerator) {
- $this->manager = $manager;
- $this->userManager = $userManager;
+ private IInitialState $initialState,
+ private IURLGenerator $urlGenerator,
+ ) {
$this->mandatoryTwoFactor = $mandatoryTwoFactor;
- $this->initialState = $initialState;
- $this->urlGenerator = $urlGenerator;
}
/**
@@ -67,8 +62,8 @@ class Security implements ISettings {
/**
* @return int whether the form should be rather on the top or bottom of
- * the admin section. The forms are arranged in ascending order of the
- * priority values. It is required to return a value between 0 and 100.
+ * the admin section. The forms are arranged in ascending order of the
+ * priority values. It is required to return a value between 0 and 100.
*
* E.g.: 70
*/