summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-10-16 17:23:47 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2023-10-19 11:44:03 +0200
commit2e4d1549a44ce3b29d3287ba3721a464733bf708 (patch)
treeb7ab204e34f2920ebd0f339bc53f292a5f797158 /apps/user_ldap/lib
parent11ebf469da14224b3e1146b65eb16095ab8b22a8 (diff)
downloadnextcloud-server-2e4d1549a44ce3b29d3287ba3721a464733bf708.tar.gz
nextcloud-server-2e4d1549a44ce3b29d3287ba3721a464733bf708.zip
Change SetupResult API to named constructors
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/user_ldap/lib')
-rw-r--r--apps/user_ldap/lib/SetupChecks/LdapInvalidUuids.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/SetupChecks/LdapInvalidUuids.php b/apps/user_ldap/lib/SetupChecks/LdapInvalidUuids.php
index a11246fd142..d6de11d35b9 100644
--- a/apps/user_ldap/lib/SetupChecks/LdapInvalidUuids.php
+++ b/apps/user_ldap/lib/SetupChecks/LdapInvalidUuids.php
@@ -52,9 +52,9 @@ class LdapInvalidUuids implements ISetupCheck {
public function run(): SetupResult {
if (count($this->userMapping->getList(0, 1, true)) === 0
&& count($this->groupMapping->getList(0, 1, true)) === 0) {
- return new SetupResult(SetupResult::SUCCESS);
+ return SetupResult::success();
} else {
- return new SetupResult(SetupResult::WARNING, $this->l10n->t('Invalid UUIDs of LDAP users or groups have been found. Please review your "Override UUID detection" settings in the Expert part of the LDAP configuration and use "occ ldap:update-uuid" to update them.'));
+ return SetupResult::warning($this->l10n->t('Invalid UUIDs of LDAP users or groups have been found. Please review your "Override UUID detection" settings in the Expert part of the LDAP configuration and use "occ ldap:update-uuid" to update them.'));
}
}
}