Completed
Pull Request — master (#63)
by Andreas
21:41
created
lib/Alcaeus/MongoDbAdapter/AbstractCursor.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     ];
81 81
 
82 82
     /**
83
-     * @return Cursor
83
+     * @return \Traversable
84 84
      */
85 85
     abstract protected function ensureCursor();
86 86
 
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
     }
378 378
 
379 379
     /**
380
-     * @return array
380
+     * @return string[]
381 381
      */
382 382
     public function __sleep()
383 383
     {
Please login to merge, or discard this patch.
lib/Mongo/MongoClient.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
      * @link http://www.php.net/manual/en/mongoclient.killcursor.php
229 229
      * @param string $server_hash The server hash that has the cursor.
230 230
      * @param int|MongoInt64 $id The ID of the cursor to kill.
231
-     * @return bool
231
+     * @return boolean|null
232 232
      */
233 233
     public function killCursor($server_hash , $id)
234 234
     {
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
     }
337 337
 
338 338
     /**
339
-     * @return array
339
+     * @return string[]
340 340
      */
341 341
     function __sleep()
342 342
     {
Please login to merge, or discard this patch.
lib/Mongo/MongoCollection.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      * @link http://www.php.net/manual/en/mongocollection.aggregate.php
123 123
      * @param array $pipeline
124 124
      * @param array $op
125
-     * @return array
125
+     * @return null|Traversable
126 126
      */
127 127
     public function aggregate(array $pipeline, array $op = [])
128 128
     {
@@ -955,6 +955,9 @@  discard block
 block discarded – undo
955 955
         return null;
956 956
     }
957 957
 
958
+    /**
959
+     * @param string $name
960
+     */
958 961
     private function checkCollectionName($name)
959 962
     {
960 963
         if (empty($name)) {
@@ -965,7 +968,7 @@  discard block
 block discarded – undo
965 968
     }
966 969
 
967 970
     /**
968
-     * @return array
971
+     * @return string[]
969 972
      */
970 973
     public function __sleep()
971 974
     {
Please login to merge, or discard this patch.
lib/Mongo/MongoCommandCursor.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
     }
103 103
 
104 104
     /**
105
-     * @return array
105
+     * @return string[]
106 106
      */
107 107
     public function __sleep()
108 108
     {
Please login to merge, or discard this patch.
lib/Mongo/MongoCursor.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
      * @link http://www.php.net/manual/en/mongocursor.hasnext.php
214 214
      * @throws MongoConnectionException
215 215
      * @throws MongoCursorTimeoutException
216
-     * @return bool Returns true if there is another element
216
+     * @return boolean|null Returns true if there is another element
217 217
      */
218 218
     public function hasNext()
219 219
     {
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
     }
458 458
 
459 459
     /**
460
-     * @return array
460
+     * @return string[]
461 461
      */
462 462
     public function __sleep()
463 463
     {
Please login to merge, or discard this patch.
lib/Mongo/MongoDB.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -511,6 +511,9 @@  discard block
 block discarded – undo
511 511
         }
512 512
     }
513 513
 
514
+    /**
515
+     * @param string $name
516
+     */
514 517
     private function checkDatabaseName($name)
515 518
     {
516 519
         if (empty($name)) {
@@ -543,7 +546,7 @@  discard block
 block discarded – undo
543 546
     }
544 547
 
545 548
     /**
546
-     * @return array
549
+     * @return string[]
547 550
      */
548 551
     public function __sleep()
549 552
     {
Please login to merge, or discard this patch.
lib/Mongo/MongoGridFS.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,7 +105,6 @@  discard block
 block discarded – undo
105 105
      * @link http://php.net/manual/en/mongogridfs.find.php
106 106
      * @param array $query The query
107 107
      * @param array $fields Fields to return
108
-     * @param array $options Options for the find command
109 108
      * @return MongoGridFSCursor A MongoGridFSCursor
110 109
      */
111 110
     public function find(array $query = [], array $fields = [])
@@ -446,7 +445,7 @@  discard block
 block discarded – undo
446 445
     }
447 446
 
448 447
     /**
449
-     * @return array
448
+     * @return string[]
450 449
      */
451 450
     public function __sleep()
452 451
     {
Please login to merge, or discard this patch.