Completed
Pull Request — master (#12)
by
unknown
02:42
created
lib/Mongo/MongoClient.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@
 block discarded – undo
207 207
      * Lists all of the databases available
208 208
      *
209 209
      * @link http://php.net/manual/en/mongoclient.listdbs.php
210
-     * @return array Returns an associative array containing three fields. The first field is databases, which in turn contains an array. Each element of the array is an associative array corresponding to a database, giving the database's name, size, and if it's empty. The other two fields are totalSize (in bytes) and ok, which is 1 if this method ran successfully.
210
+     * @return MongoDB\Model\DatabaseInfoLegacyIterator Returns an associative array containing three fields. The first field is databases, which in turn contains an array. Each element of the array is an associative array corresponding to a database, giving the database's name, size, and if it's empty. The other two fields are totalSize (in bytes) and ok, which is 1 if this method ran successfully.
211 211
      */
212 212
     public function listDBs()
213 213
     {
Please login to merge, or discard this patch.
lib/Mongo/MongoGridFS.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * @link http://php.net/manual/en/mongogridfs.construct.php
46 46
      * @param MongoDB $db Database
47 47
      * @param string $prefix [optional] <p>Optional collection name prefix.</p>
48
-     * @param mixed $chunks  [optional]
48
+     * @param string $chunks  [optional]
49 49
      * @return MongoGridFS
50 50
      */
51 51
     public function __construct($db, $prefix = "fs", $chunks = "fs") {}
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      * @param array $criteria Description of records to remove.
101 101
      * @param array $options Options for remove. Valid options are: "safe"- Check that the remove succeeded.
102 102
      * @throws MongoCursorException
103
-     * @return boolean
103
+     * @return boolean|null
104 104
      */
105 105
     public function remove(array $criteria = array(), array $options = array()) {}
106 106
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      * Delete a file from the database
109 109
      * @link http://php.net/manual/en/mongogridfs.delete.php
110 110
      * @param mixed $id _id of the file to remove
111
-     * @return boolean Returns true if the remove was successfully sent to the database.
111
+     * @return boolean|null Returns true if the remove was successfully sent to the database.
112 112
      */
113 113
     public function delete($id) {}
114 114
 
Please login to merge, or discard this patch.
lib/Mongo/MongoId.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@
 block discarded – undo
200 200
     }
201 201
 
202 202
     /**
203
-     * @param $id
203
+     * @param string|null $id
204 204
      * @throws MongoException
205 205
      */
206 206
     private function createObjectID($id)
Please login to merge, or discard this patch.
lib/Mongo/MongoLog.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
      *
98 98
      * <p>The log message itself.</p></li>
99 99
      * <ul>
100
-     * @return boolean Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
100
+     * @return boolean|null Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
101 101
      */
102 102
     public static function setCallback ( callable $log_function ) {}
103 103
 
Please login to merge, or discard this patch.
lib/Mongo/MongoPool.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
      * @param int $size The max number of connections future pools will be able to
51 51
      *        create. Negative numbers mean that the pool will spawn an infinite number of
52 52
      *        connections
53
-     * @return boolean Returns the former value of pool size
53
+     * @return boolean|null Returns the former value of pool size
54 54
      */
55 55
     public static function setSize($size) {}
56 56
 
Please login to merge, or discard this patch.
lib/Alcaeus/MongoDbAdapter/AbstractCursor.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
     protected $readPreference = [];
73 73
 
74 74
     /**
75
-     * @return Cursor
75
+     * @return \Traversable
76 76
      */
77 77
     abstract protected function ensureCursor();
78 78
 
Please login to merge, or discard this patch.
lib/Mongo/MongoCursor.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@
 block discarded – undo
201 201
      * @link http://www.php.net/manual/en/mongocursor.hasnext.php
202 202
      * @throws MongoConnectionException
203 203
      * @throws MongoCursorTimeoutException
204
-     * @return bool Returns true if there is another element
204
+     * @return boolean|null Returns true if there is another element
205 205
      */
206 206
     public function hasNext()
207 207
     {
Please login to merge, or discard this patch.
lib/Mongo/MongoDB.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -292,7 +292,6 @@  discard block
 block discarded – undo
292 292
      * (PECL mongo &gt;= 0.9.0)<br/>
293 293
      * Get a list of collections in this database
294 294
      * @link http://www.php.net/manual/en/mongodb.listcollections.php
295
-     * @param bool $includeSystemCollections [optional] <p>Include system collections.</p>
296 295
      * @return array Returns a list of MongoCollections.
297 296
      */
298 297
     public function listCollections(array $options = [])
@@ -433,7 +432,7 @@  discard block
 block discarded – undo
433 432
      * (PECL mongo &gt;= 0.9.5)<br/>
434 433
      * Creates a database error
435 434
      * @link http://www.php.net/manual/en/mongodb.forceerror.php
436
-     * @return boolean Returns the database response.
435
+     * @return boolean|null Returns the database response.
437 436
      */
438 437
     public function forceError()
439 438
     {
Please login to merge, or discard this patch.
lib/Mongo/MongoCollection.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
      * @throws MongoException if the inserted document is empty or if it contains zero-length keys. Attempting to insert an object with protected and private properties will cause a zero-length key error.
273 273
      * @throws MongoCursorException if the "w" option is set and the write fails.
274 274
      * @throws MongoCursorTimeoutException if the "w" option is set to a value greater than one and the operation takes longer than MongoCursor::$timeout milliseconds to complete. This does not kill the operation on the server, it is a client-side timeout. The operation in MongoCollection::$wtimeout is milliseconds.
275
-     * @return bool|array Returns an array containing the status of the insertion if the "w" option is set.
275
+     * @return MongoDB\InsertOneResult Returns an array containing the status of the insertion if the "w" option is set.
276 276
      */
277 277
     public function insert($a, array $options = array())
278 278
     {
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
      * @param array $a An array of arrays.
286 286
      * @param array $options Options for the inserts.
287 287
      * @throws MongoCursorException
288
-     * @return mixed f "safe" is set, returns an associative array with the status of the inserts ("ok") and any error that may have occured ("err"). Otherwise, returns TRUE if the batch insert was successfully sent, FALSE otherwise.
288
+     * @return MongoDB\InsertManyResult f "safe" is set, returns an associative array with the status of the inserts ("ok") and any error that may have occured ("err"). Otherwise, returns TRUE if the batch insert was successfully sent, FALSE otherwise.
289 289
      */
290 290
     public function batchInsert(array $a, array $options = array())
291 291
     {
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
      * @link http://www.php.net/manual/en/mongocollection.createindex.php
467 467
      * @param array $keys Field or fields to use as index.
468 468
      * @param array $options [optional] This parameter is an associative array of the form array("optionname" => <boolean>, ...).
469
-     * @return array Returns the database response.
469
+     * @return string|false Returns the database response.
470 470
      */
471 471
     public function createIndex(array $keys, array $options = array())
472 472
     {
@@ -559,7 +559,7 @@  discard block
 block discarded – undo
559 559
      * @throws MongoException if the inserted document is empty or if it contains zero-length keys. Attempting to insert an object with protected and private properties will cause a zero-length key error.
560 560
      * @throws MongoCursorException if the "w" option is set and the write fails.
561 561
      * @throws MongoCursorTimeoutException if the "w" option is set to a value greater than one and the operation takes longer than MongoCursor::$timeout milliseconds to complete. This does not kill the operation on the server, it is a client-side timeout. The operation in MongoCollection::$wtimeout is milliseconds.
562
-     * @return array|boolean If w was set, returns an array containing the status of the save.
562
+     * @return MongoDB\UpdateResult If w was set, returns an array containing the status of the save.
563 563
      * Otherwise, returns a boolean representing if the array was not empty (an empty array will not be inserted).
564 564
      */
565 565
     public function save($a, array $options = array())
Please login to merge, or discard this patch.