Completed
Pull Request — master (#7)
by
unknown
08:47
created
lib/Auth/Ldap.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -881,7 +881,7 @@  discard block
 block discarded – undo
881 881
         Logger::warning('Library - LDAP setAttributes(): No array of attributes given for DN \''.$dn.'\'');
882 882
         return false;
883 883
       } else {
884
-        Logger::debug('Library - LDAP setAttributes(): Recevied arraydata:'.print_r($attributes,true));
884
+        Logger::debug('Library - LDAP setAttributes(): Recevied arraydata:'.print_r($attributes, true));
885 885
       }
886 886
 
887 887
       // Attempt to set attributes
@@ -906,7 +906,7 @@  discard block
 block discarded – undo
906 906
          Logger::warning('Library - LDAP addAttributes(): No array of attributes given for DN \''.$dn.'\'');
907 907
          return false;
908 908
        } else {
909
-         Logger::debug('Library - LDAP addAttributes(): Recevied arraydata:'.print_r($attributes,true));
909
+         Logger::debug('Library - LDAP addAttributes(): Recevied arraydata:'.print_r($attributes, true));
910 910
        }
911 911
 
912 912
        // Attempt to add attributes
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -886,7 +886,9 @@  discard block
 block discarded – undo
886 886
 
887 887
       // Attempt to set attributes
888 888
       $result = @ldap_mod_replace($this->ldap, $dn, $attributes);
889
-      if ($result === false) throw $this->makeException('Library - LDAP setAttributes(): Failed to set attributes for DN \''.$dn.'\'. Bind necessary?');
889
+      if ($result === false) {
890
+          throw $this->makeException('Library - LDAP setAttributes(): Failed to set attributes for DN \''.$dn.'\'. Bind necessary?');
891
+      }
890 892
 
891 893
       return $result;
892 894
     }
@@ -911,7 +913,9 @@  discard block
 block discarded – undo
911 913
 
912 914
        // Attempt to add attributes
913 915
        $result = @ldap_mod_add($this->ldap, $dn, $attributes);
914
-       if ($result === false) throw $this->makeException('Library - LDAP addAttributes(): Failed to set attributes for DN \''.$dn.'\'. Bind necessary?');
916
+       if ($result === false) {
917
+           throw $this->makeException('Library - LDAP addAttributes(): Failed to set attributes for DN \''.$dn.'\'. Bind necessary?');
918
+       }
915 919
 
916 920
        return $result;
917 921
      }    
Please login to merge, or discard this patch.