Completed
Push — master ( 198ef6...d4d4ec )
by Christopher
02:36
created
Connection.php 3 patches
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
     /**
95 95
      * Get the current resource of connection.
96
-     * @return mixed
96
+     * @return resource
97 97
      */
98 98
     public function getResource()
99 99
     {
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
      * Add attribute values to current attributes.
283 283
      * @param string $dn
284 284
      * @param array  $entry
285
-     * @return mixed
285
+     * @return boolean
286 286
      */
287 287
     public function modAdd($dn, array $entry)
288 288
     {
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
      * Replaces attribute values with new ones.
294 294
      * @param string $dn
295 295
      * @param array  $entry
296
-     * @return mixed
296
+     * @return boolean
297 297
      */
298 298
     public function modReplace($dn, array $entry)
299 299
     {
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
      * Delete attribute values from current attributes.
305 305
      * @param string $dn
306 306
      * @param array  $entry
307
-     * @return mixed
307
+     * @return boolean
308 308
      */
309 309
     public function modDelete($dn, array $entry)
310 310
     {
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
     
324 324
     /**
325 325
      * Returns the number of entries from a search result.
326
-     * @param $searchResult
326
+     * @param resource $searchResult
327 327
      * @return int
328 328
      */
329 329
     public function countEntries($searchResult)
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
     /**
335 335
      * Retrieves the first entry from a search result.
336 336
      * @param $searchResult
337
-     * @return mixed
337
+     * @return resource
338 338
      */
339 339
     public function getFirstEntry($searchResult)
340 340
     {
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
     /**
345 345
      * Retrieves the next entry from a search result.
346 346
      * @param $entry
347
-     * @return mixed
347
+     * @return resource
348 348
      */
349 349
     public function getNextEntry($entry)
350 350
     {
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
      * Sets an option on the current connection.
366 366
      * @param int   $option
367 367
      * @param mixed $value
368
-     * @return mixed
368
+     * @return boolean
369 369
      */
370 370
     public function setOption($option, $value)
371 371
     {
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
     
393 393
     /**
394 394
      * Returns the number of the last error on the current connection.
395
-     * @return mixed
395
+     * @return integer
396 396
      */
397 397
     public function getErrNo()
398 398
     {
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -278,12 +278,12 @@
 block discarded – undo
278 278
         return ldap_modify_batch($this->resource, $dn, $values);
279 279
     }
280 280
 
281
-     /**
282
-     * Add attribute values to current attributes.
283
-     * @param string $dn
284
-     * @param array  $entry
285
-     * @return mixed
286
-     */
281
+        /**
282
+         * Add attribute values to current attributes.
283
+         * @param string $dn
284
+         * @param array  $entry
285
+         * @return mixed
286
+         */
287 287
     public function modAdd($dn, array $entry)
288 288
     {
289 289
         return ldap_mod_add($this->resource, $dn, $entry);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
139 139
         $protocol = $this::PROTOCOL;
140 140
 
141 141
         if (is_array($hostname)) {
142
-            $hostname = $protocol . implode(' ' . $protocol, $hostname);
142
+            $hostname = $protocol.implode(' '.$protocol, $hostname);
143 143
         }
144 144
         $this->resource = ldap_connect($hostname, $port);
145 145
 
Please login to merge, or discard this patch.