aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-09-28 16:15:00 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2023-10-19 11:43:59 +0200
commitb41b9cf4c0da2e6e3c0502f51a5a9942ecff6fb3 (patch)
treee9b5aa7e07a4f459441de4b3fcee3ec23370fdcb
parent1202171b3214e7d9588bfc37b72a54f5f63b360c (diff)
downloadnextcloud-server-b41b9cf4c0da2e6e3c0502f51a5a9942ecff6fb3.tar.gz
nextcloud-server-b41b9cf4c0da2e6e3c0502f51a5a9942ecff6fb3.zip
Small cleanups in SetupCheck classes
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r--apps/settings/lib/SetupChecks/CheckUserCertificates.php7
-rw-r--r--apps/settings/lib/SetupChecks/LegacySSEKeyFormat.php13
-rw-r--r--apps/user_ldap/lib/SetupChecks/LdapInvalidUuids.php13
3 files changed, 14 insertions, 19 deletions
diff --git a/apps/settings/lib/SetupChecks/CheckUserCertificates.php b/apps/settings/lib/SetupChecks/CheckUserCertificates.php
index 38832bd2860..5d58f61b675 100644
--- a/apps/settings/lib/SetupChecks/CheckUserCertificates.php
+++ b/apps/settings/lib/SetupChecks/CheckUserCertificates.php
@@ -32,11 +32,12 @@ use OCP\SetupCheck\ISetupCheck;
use OCP\SetupCheck\SetupResult;
class CheckUserCertificates implements ISetupCheck {
- private IL10N $l10n;
private string $configValue;
- public function __construct(IL10N $l10n, IConfig $config) {
- $this->l10n = $l10n;
+ public function __construct(
+ private IL10N $l10n,
+ IConfig $config,
+ ) {
$configValue = $config->getAppValue('files_external', 'user_certificate_scan', '');
$this->configValue = $configValue;
}
diff --git a/apps/settings/lib/SetupChecks/LegacySSEKeyFormat.php b/apps/settings/lib/SetupChecks/LegacySSEKeyFormat.php
index 44560590f74..68964b3fdab 100644
--- a/apps/settings/lib/SetupChecks/LegacySSEKeyFormat.php
+++ b/apps/settings/lib/SetupChecks/LegacySSEKeyFormat.php
@@ -32,14 +32,11 @@ use OCP\SetupCheck\ISetupCheck;
use OCP\SetupCheck\SetupResult;
class LegacySSEKeyFormat implements ISetupCheck {
- private IL10N $l10n;
- private IConfig $config;
- private IURLGenerator $urlGenerator;
-
- public function __construct(IL10N $l10n, IConfig $config, IURLGenerator $urlGenerator) {
- $this->l10n = $l10n;
- $this->config = $config;
- $this->urlGenerator = $urlGenerator;
+ public function __construct(
+ private IL10N $l10n,
+ private IConfig $config,
+ private IURLGenerator $urlGenerator,
+ ) {
}
public function getCategory(): string {
diff --git a/apps/user_ldap/lib/SetupChecks/LdapInvalidUuids.php b/apps/user_ldap/lib/SetupChecks/LdapInvalidUuids.php
index 473fedc5c1d..a11246fd142 100644
--- a/apps/user_ldap/lib/SetupChecks/LdapInvalidUuids.php
+++ b/apps/user_ldap/lib/SetupChecks/LdapInvalidUuids.php
@@ -34,14 +34,11 @@ use OCP\SetupCheck\ISetupCheck;
use OCP\SetupCheck\SetupResult;
class LdapInvalidUuids implements ISetupCheck {
- private IL10N $l10n;
- private UserMapping $userMapping;
- private GroupMapping $groupMapping;
-
- public function __construct(IL10N $l10n, UserMapping $userMapping, GroupMapping $groupMapping) {
- $this->l10n = $l10n;
- $this->userMapping = $userMapping;
- $this->groupMapping = $groupMapping;
+ public function __construct(
+ private IL10N $l10n,
+ private UserMapping $userMapping,
+ private GroupMapping $groupMapping,
+ ) {
}
public function getCategory(): string {