Completed
Pull Request — master (#7)
by Tim
03:08 queued 41s
created
lib/Auth/Ldap.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -885,37 +885,37 @@
 block discarded – undo
885 885
      * Result of operation
886 886
      */
887 887
     public function setAttributes($dn, array $attributes) {
888
-      Logger::debug('Library - LDAP setAttributes(): Received arraydata:'.print_r($attributes, true));
888
+        Logger::debug('Library - LDAP setAttributes(): Received arraydata:'.print_r($attributes, true));
889 889
 
890
-      // Attempt to set attributes
891
-      $result = @ldap_mod_replace($this->ldap, $dn, $attributes);
892
-      if ($result === false) {
893
-          throw $this->makeException('Library - LDAP setAttributes(): Failed to set attributes for DN \''.$dn.'\'. Bind necessary?');
894
-      }
890
+        // Attempt to set attributes
891
+        $result = @ldap_mod_replace($this->ldap, $dn, $attributes);
892
+        if ($result === false) {
893
+            throw $this->makeException('Library - LDAP setAttributes(): Failed to set attributes for DN \''.$dn.'\'. Bind necessary?');
894
+        }
895 895
 
896
-      return $result;
896
+        return $result;
897 897
     }
898 898
 
899 899
 
900 900
     /**
901
-      * Adds for a given DN attributes
902
-      *
903
-      * @param string $dn
904
-      * The DN of an element.
905
-      * @param array $attributes
906
-      * The names and value of the attribute(s) to set using ldap_mod_add structure;
907
-      * @return bool
908
-      * Result of operation
909
-      */
910
-     public function addAttributes($dn, array $attributes) {
911
-       Logger::debug('Library - LDAP addAttributes(): Received arraydata:'.print_r($attributes, true));
912
-
913
-       // Attempt to add attributes
914
-       $result = @ldap_mod_add($this->ldap, $dn, $attributes);
915
-       if ($result === false) {
916
-           throw $this->makeException('Library - LDAP addAttributes(): Failed to set attributes for DN \''.$dn.'\'. Bind necessary?');
917
-       }
918
-
919
-       return $result;
920
-     }    
901
+     * Adds for a given DN attributes
902
+     *
903
+     * @param string $dn
904
+     * The DN of an element.
905
+     * @param array $attributes
906
+     * The names and value of the attribute(s) to set using ldap_mod_add structure;
907
+     * @return bool
908
+     * Result of operation
909
+     */
910
+        public function addAttributes($dn, array $attributes) {
911
+        Logger::debug('Library - LDAP addAttributes(): Received arraydata:'.print_r($attributes, true));
912
+
913
+        // Attempt to add attributes
914
+        $result = @ldap_mod_add($this->ldap, $dn, $attributes);
915
+        if ($result === false) {
916
+            throw $this->makeException('Library - LDAP addAttributes(): Failed to set attributes for DN \''.$dn.'\'. Bind necessary?');
917
+        }
918
+
919
+        return $result;
920
+        }    
921 921
 }
Please login to merge, or discard this patch.