aboutsummaryrefslogtreecommitdiffstats
path: root/apps/sharebymail/lib/Settings
diff options
context:
space:
mode:
Diffstat (limited to 'apps/sharebymail/lib/Settings')
-rw-r--r--apps/sharebymail/lib/Settings/Admin.php18
-rw-r--r--apps/sharebymail/lib/Settings/SettingsManager.php8
2 files changed, 11 insertions, 15 deletions
diff --git a/apps/sharebymail/lib/Settings/Admin.php b/apps/sharebymail/lib/Settings/Admin.php
index b39eced3c86..8f27bbff6d6 100644
--- a/apps/sharebymail/lib/Settings/Admin.php
+++ b/apps/sharebymail/lib/Settings/Admin.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
@@ -11,14 +12,11 @@ use OCP\IL10N;
use OCP\Settings\IDelegatedSettings;
class Admin implements IDelegatedSettings {
- private SettingsManager $settingsManager;
- private IL10N $l;
- private IInitialState $initialState;
-
- public function __construct(SettingsManager $settingsManager, IL10N $l, IInitialState $initialState) {
- $this->settingsManager = $settingsManager;
- $this->l = $l;
- $this->initialState = $initialState;
+ public function __construct(
+ private SettingsManager $settingsManager,
+ private IL10N $l,
+ private IInitialState $initialState,
+ ) {
}
/**
@@ -40,8 +38,8 @@ class Admin implements IDelegatedSettings {
/**
* @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
*/
diff --git a/apps/sharebymail/lib/Settings/SettingsManager.php b/apps/sharebymail/lib/Settings/SettingsManager.php
index c58f4950e91..d487bd2ac43 100644
--- a/apps/sharebymail/lib/Settings/SettingsManager.php
+++ b/apps/sharebymail/lib/Settings/SettingsManager.php
@@ -12,15 +12,13 @@ use OCP\IConfig;
class SettingsManager {
- /** @var IConfig */
- private $config;
-
private $sendPasswordByMailDefault = 'yes';
private $replyToInitiatorDefault = 'yes';
- public function __construct(IConfig $config) {
- $this->config = $config;
+ public function __construct(
+ private IConfig $config,
+ ) {
}
/**