diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-03-03 16:35:06 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-03-03 16:35:06 +0100 |
commit | dab5ea958a58e79b7f40b49bbe3af8839dc9c9d1 (patch) | |
tree | ba32d3a96807f5f126ce7e2fcf82d1c0796ead43 /apps/user_ldap/lib/Access.php | |
parent | 0c5bd588ed4528d46df244a686b6f91299766836 (diff) | |
download | nextcloud-server-dab5ea958a58e79b7f40b49bbe3af8839dc9c9d1.tar.gz nextcloud-server-dab5ea958a58e79b7f40b49bbe3af8839dc9c9d1.zip |
Fix unit tests
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/user_ldap/lib/Access.php')
-rw-r--r-- | apps/user_ldap/lib/Access.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php index 028e01e2c41..daa5d343185 100644 --- a/apps/user_ldap/lib/Access.php +++ b/apps/user_ldap/lib/Access.php @@ -1467,7 +1467,7 @@ class Access extends LDAPUtility { * @param string $search the search term * @return string the final filter part to use in LDAP searches */ - public function getFilterPartForUserSearch($search) { + public function getFilterPartForUserSearch($search): string { return $this->getFilterPartForSearch($search, $this->connection->ldapAttributesForUserSearch, $this->connection->ldapUserDisplayName); @@ -1479,7 +1479,7 @@ class Access extends LDAPUtility { * @param string $search the search term * @return string the final filter part to use in LDAP searches */ - public function getFilterPartForGroupSearch($search) { + public function getFilterPartForGroupSearch($search): string { return $this->getFilterPartForSearch($search, $this->connection->ldapAttributesForGroupSearch, $this->connection->ldapGroupDisplayName); @@ -1571,10 +1571,8 @@ class Access extends LDAPUtility { /** * returns the filter used for counting users - * - * @return string */ - public function getFilterForUserCount() { + public function getFilterForUserCount(): string { $filter = $this->combineFilterWithAnd([ $this->connection->ldapUserFilter, $this->connection->ldapUserDisplayName . '=*' |