@@ -72,7 +72,7 @@ |
||
| 72 | 72 | protected $readPreference = []; |
| 73 | 73 | |
| 74 | 74 | /** |
| 75 | - * @return Cursor |
|
| 75 | + * @return \Traversable |
|
| 76 | 76 | */ |
| 77 | 77 | abstract protected function ensureCursor(); |
| 78 | 78 | |
@@ -216,7 +216,7 @@ discard block |
||
| 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 |
||
| 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 |
@@ -201,7 +201,7 @@ |
||
| 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 | { |
@@ -377,7 +377,7 @@ |
||
| 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 | |