@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | * @link http://www.php.net/manual/en/mongocursor.hasnext.php |
265 | 265 | * @throws MongoConnectionException |
266 | 266 | * @throws MongoCursorTimeoutException |
267 | - * @return bool Returns true if there is another element |
|
267 | + * @return boolean|null Returns true if there is another element |
|
268 | 268 | */ |
269 | 269 | public function hasNext() |
270 | 270 | { |
@@ -676,7 +676,7 @@ discard block |
||
676 | 676 | } |
677 | 677 | |
678 | 678 | /** |
679 | - * @return Cursor |
|
679 | + * @return Traversable |
|
680 | 680 | */ |
681 | 681 | private function ensureCursor() |
682 | 682 | { |
@@ -464,7 +464,7 @@ discard block |
||
464 | 464 | MongoClient::RP_SECONDARY_PREFERRED, |
465 | 465 | MongoClient::RP_NEAREST |
466 | 466 | ]; |
467 | - if (! in_array($readPreference, $availableReadPreferences)) { |
|
467 | + if (!in_array($readPreference, $availableReadPreferences)) { |
|
468 | 468 | trigger_error("The value '$readPreference' is not valid as read preference type", E_WARNING); |
469 | 469 | return $this; |
470 | 470 | } |
@@ -621,7 +621,7 @@ discard block |
||
621 | 621 | */ |
622 | 622 | private function convertCursorType() |
623 | 623 | { |
624 | - if (! $this->tailable) { |
|
624 | + if (!$this->tailable) { |
|
625 | 625 | return null; |
626 | 626 | } |
627 | 627 |