From f4554374bd7e4e24ff6f20c7798501652df3c812 Mon Sep 17 00:00:00 2001 From: S-A-L13 Date: Tue, 27 Feb 2024 13:10:53 +0100 Subject: [PATCH] Minor changes to match coding style of original coder --- plugins/ldap-identities/LdapIdentities.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/ldap-identities/LdapIdentities.php b/plugins/ldap-identities/LdapIdentities.php index cade58ed0..a354487a5 100644 --- a/plugins/ldap-identities/LdapIdentities.php +++ b/plugins/ldap-identities/LdapIdentities.php @@ -289,12 +289,14 @@ class LdapIdentities implements IIdentities @paraam string $mailPrefix @return array */ - private function CleanupMailAddresses(array $entries, string $mailField, string $mailPrefix) { + private function CleanupMailAddresses(array $entries, string $mailField, string $mailPrefix) + { if (!empty($mailPrefix)) { for ($i = 0; $i < $entries["count"]; $i++) { // Remove addresses without the given prefix $entries[$i]["$mailField"] = array_filter($entries[$i]["$mailField"], - function($prefixMail) { + function($prefixMail) + { // $mailPrefix can't be used here, because it's nailed to the CleanupMailAddresses function and can't be passed to the array_filter function afaik. // Ideas to avoid this are welcome. if (stripos($prefixMail, $this->config->mail_prefix) === 0) { @@ -321,7 +323,6 @@ class LdapIdentities implements IIdentities return $entries; } - /** * @param array $entry * @param string $attribute