From d9015a8c94bfd71fe484618a06d276701d3bf9ff Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Mon, 5 Oct 2020 15:12:57 +0200 Subject: Format code to a single space around binary operators Signed-off-by: Christoph Wurst --- apps/user_ldap/lib/Connection.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/user_ldap/lib/Connection.php') diff --git a/apps/user_ldap/lib/Connection.php b/apps/user_ldap/lib/Connection.php index b7556bf236e..af10aadc6bb 100644 --- a/apps/user_ldap/lib/Connection.php +++ b/apps/user_ldap/lib/Connection.php @@ -273,7 +273,7 @@ class Connection extends LDAPUtility { || !$this->configuration->ldapConfigurationActive) { return null; } - $key = $this->getCacheKey($key); + $key = $this->getCacheKey($key); $value = base64_encode(json_encode($value)); $this->cache->set($key, $value, $this->configuration->ldapCacheTTL); } @@ -371,7 +371,7 @@ class Connection extends LDAPUtility { } } - foreach (['ldapExpertUUIDUserAttr' => 'ldapUuidUserAttribute', + foreach (['ldapExpertUUIDUserAttr' => 'ldapUuidUserAttribute', 'ldapExpertUUIDGroupAttr' => 'ldapUuidGroupAttribute'] as $expertSetting => $effectiveSetting) { $uuidOverride = $this->configuration->$expertSetting; @@ -466,7 +466,7 @@ class Connection extends LDAPUtility { $agent = $this->configuration->ldapAgentName; $pwd = $this->configuration->ldapAgentPassword; if ( - ($agent === '' && $pwd !== '') + ($agent === '' && $pwd !== '') || ($agent !== '' && $pwd === '') ) { \OCP\Util::writeLog( -- cgit v1.2.3