aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/Connection.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/user_ldap/lib/Connection.php')
-rw-r--r--apps/user_ldap/lib/Connection.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/user_ldap/lib/Connection.php b/apps/user_ldap/lib/Connection.php
index b74c964eb72..757ba2d8e8a 100644
--- a/apps/user_ldap/lib/Connection.php
+++ b/apps/user_ldap/lib/Connection.php
@@ -259,11 +259,11 @@ class Connection extends LDAPUtility {
* @param string|null $key
*/
private function getCacheKey($key): string {
- $prefix = 'LDAP-'.$this->configID.'-'.$this->configPrefix.'-';
+ $prefix = 'LDAP-' . $this->configID . '-' . $this->configPrefix . '-';
if (is_null($key)) {
return $prefix;
}
- return $prefix.hash('sha256', $key);
+ return $prefix . hash('sha256', $key);
}
/**
@@ -410,7 +410,7 @@ class Connection extends LDAPUtility {
$this->configuration->$effectiveSetting = 'auto';
$this->configuration->saveConfiguration();
$this->logger->info(
- 'Illegal value for the '.$effectiveSetting.', reset to autodetect.',
+ 'Illegal value for the ' . $effectiveSetting . ', reset to autodetect.',
['app' => 'user_ldap']
);
}
@@ -480,7 +480,7 @@ class Connection extends LDAPUtility {
}
$configurationOK = false;
$this->logger->warning(
- $errorStr.'No '.$subj.' given!',
+ $errorStr . 'No ' . $subj . ' given!',
['app' => 'user_ldap']
);
}
@@ -494,7 +494,7 @@ class Connection extends LDAPUtility {
|| ($agent !== '' && $pwd === '')
) {
$this->logger->warning(
- $errorStr.'either no password is given for the user ' .
+ $errorStr . 'either no password is given for the user ' .
'agent or a password is given, but not an LDAP agent.',
['app' => 'user_ldap']
);
@@ -507,7 +507,7 @@ class Connection extends LDAPUtility {
if (empty($base) && empty($baseUsers) && empty($baseGroups)) {
$this->logger->warning(
- $errorStr.'Not a single Base DN given.',
+ $errorStr . 'Not a single Base DN given.',
['app' => 'user_ldap']
);
$configurationOK = false;
@@ -516,7 +516,7 @@ class Connection extends LDAPUtility {
if (mb_strpos((string)$this->configuration->ldapLoginFilter, '%uid', 0, 'UTF-8')
=== false) {
$this->logger->warning(
- $errorStr.'login filter does not contain %uid place holder.',
+ $errorStr . 'login filter does not contain %uid place holder.',
['app' => 'user_ldap']
);
$configurationOK = false;