Completed
Pull Request — master (#10)
by Andreas
02:32
created
lib/Alcaeus/MongoDbAdapter/AbstractCursor.php 2 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
             \MongoClient::RP_SECONDARY_PREFERRED,
217 217
             \MongoClient::RP_NEAREST
218 218
         ];
219
-        if (! in_array($readPreference, $availableReadPreferences)) {
219
+        if (!in_array($readPreference, $availableReadPreferences)) {
220 220
             trigger_error("The value '$readPreference' is not valid as read preference type", E_WARNING);
221 221
             return $this;
222 222
         }
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
             }
358 358
 
359 359
             $iterationInfo += [
360
-                'id' => (string)$this->cursor->getId(),
360
+                'id' => (string) $this->cursor->getId(),
361 361
                 'at' => null, // @todo Complete info for cursor that is iterating
362 362
                 'numReturned' => null, // @todo Complete info for cursor that is iterating
363 363
                 'server' => null, // @todo Complete info for cursor that is iterating
Please login to merge, or discard this patch.
lib/Mongo/MongoCursor.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -377,7 +377,7 @@
 block discarded – undo
377 377
      */
378 378
     protected function convertCursorType()
379 379
     {
380
-        if (! $this->tailable) {
380
+        if (!$this->tailable) {
381 381
             return null;
382 382
         }
383 383
 
Please login to merge, or discard this patch.