Completed
Push — master ( defc9d...f38146 )
by Christopher
02:50
created
Connection.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     /**
100 100
      * Get the current resource of connection.
101 101
      *
102
-     * @return mixed
102
+     * @return Connection
103 103
      */
104 104
     public function getResource()
105 105
     {
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      * Retrieve the last error on the current
141 141
      * connection.
142 142
      *
143
-     * @return string
143
+     * @return boolean
144 144
      */
145 145
     public function connect($hostname = [], $port = '389')
146 146
     {
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
     /**
174 174
      * Closes the current connection.
175 175
      *
176
-     * @return mixed
176
+     * @return boolean
177 177
      */
178 178
     public function close()
179 179
     {
Please login to merge, or discard this patch.
LdapFunctionTrait.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -96,14 +96,14 @@
 block discarded – undo
96 96
         return ldap_modify_batch($this->resource, $dn, $values);
97 97
     }
98 98
 
99
-     /**
100
-     * Add attribute values to current attributes.
101
-     *
102
-     * @param string $dn
103
-     * @param array  $entry
104
-     *
105
-     * @return mixed
106
-     */
99
+        /**
100
+         * Add attribute values to current attributes.
101
+         *
102
+         * @param string $dn
103
+         * @param array  $entry
104
+         *
105
+         * @return mixed
106
+         */
107 107
     public function modAdd($dn, array $entry)
108 108
     {
109 109
         return ldap_mod_add($this->resource, $dn, $entry);
Please login to merge, or discard this patch.
ActiveRecord.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -91,11 +91,11 @@  discard block
 block discarded – undo
91 91
     {
92 92
         $this->schema = new Schema();
93 93
         
94
-        if(!is_null($this->schemaClass)){
95
-            if(class_exists($this->schemaClass)){
94
+        if (!is_null($this->schemaClass)) {
95
+            if (class_exists($this->schemaClass)) {
96 96
                 Schema::set(new $this->schemaClass);
97 97
             } else {
98
-                throw new InvalidConfigException('"' . $this->schemaClass . '" does not exist.');
98
+                throw new InvalidConfigException('"'.$this->schemaClass.'" does not exist.');
99 99
             }
100 100
         }
101 101
 
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
         $dn = $values[self::primaryKey()];
189 189
         unset($values[self::primaryKey()]);
190 190
         
191
-        if (($primaryKeys = static::getDb()->execute('ldap_add', [$dn,$values])) === false) {
191
+        if (($primaryKeys = static::getDb()->execute('ldap_add', [$dn, $values])) === false) {
192 192
             return false;
193 193
         }
194 194
         $this->setAttribute(self::primaryKey(), $dn);
Please login to merge, or discard this patch.