summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/LDAP.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-10 10:35:09 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-10 10:35:09 +0200
commit14c996d98256de958da367297c3313e0fa7ef9a8 (patch)
tree27074d5403b67cbaf59d7b7181481ebe70af5d9e /apps/user_ldap/lib/LDAP.php
parentd6e17fb01777866674129a5883c03642f4bfd4a5 (diff)
downloadnextcloud-server-14c996d98256de958da367297c3313e0fa7ef9a8.tar.gz
nextcloud-server-14c996d98256de958da367297c3313e0fa7ef9a8.zip
Use elseif instead of else if
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/user_ldap/lib/LDAP.php')
-rw-r--r--apps/user_ldap/lib/LDAP.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/user_ldap/lib/LDAP.php b/apps/user_ldap/lib/LDAP.php
index f346272a18b..c4a30770566 100644
--- a/apps/user_ldap/lib/LDAP.php
+++ b/apps/user_ldap/lib/LDAP.php
@@ -343,19 +343,19 @@ class LDAP implements ILDAPWrapper {
if($this->curFunc === 'ldap_get_entries'
&& $errorCode === -4) {
- } else if ($errorCode === 32) {
+ } elseif ($errorCode === 32) {
//for now
- } else if ($errorCode === 10) {
+ } elseif ($errorCode === 10) {
//referrals, we switch them off, but then there is AD :)
- } else if ($errorCode === -1) {
+ } elseif ($errorCode === -1) {
throw new ServerNotAvailableException('Lost connection to LDAP server.');
- } else if ($errorCode === 52) {
+ } elseif ($errorCode === 52) {
throw new ServerNotAvailableException('LDAP server is shutting down.');
- } else if ($errorCode === 48) {
+ } elseif ($errorCode === 48) {
throw new \Exception('LDAP authentication method rejected', $errorCode);
- } else if ($errorCode === 1) {
+ } elseif ($errorCode === 1) {
throw new \Exception('LDAP Operations error', $errorCode);
- } else if ($errorCode === 19) {
+ } elseif ($errorCode === 19) {
ldap_get_option($this->curArgs[0], LDAP_OPT_ERROR_STRING, $extended_error);
throw new ConstraintViolationException(!empty($extended_error)?$extended_error:$errorMsg, $errorCode);
} else {
@@ -375,7 +375,7 @@ class LDAP implements ILDAPWrapper {
private function postFunctionCall() {
if($this->isResource($this->curArgs[0])) {
$resource = $this->curArgs[0];
- } else if(
+ } elseif(
$this->curFunc === 'ldap_search'
&& is_array($this->curArgs[0])
&& $this->isResource($this->curArgs[0][0])