mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Small cleanups in SetupCheck classes
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
1202171b32
commit
b41b9cf4c0
3 changed files with 14 additions and 19 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue