@@ -43,7 +43,7 @@ |
||
43 | 43 | return; |
44 | 44 | } |
45 | 45 | |
46 | - if (! preg_match('#^/(.*)/([imxslu]*)$#', $regex, $matches)) { |
|
46 | + if (!preg_match('#^/(.*)/([imxslu]*)$#', $regex, $matches)) { |
|
47 | 47 | throw new MongoException('invalid regex', 9); |
48 | 48 | } |
49 | 49 |
@@ -77,7 +77,7 @@ |
||
77 | 77 | */ |
78 | 78 | public static function get($db, $ref) |
79 | 79 | { |
80 | - if (! static::isRef($ref)) { |
|
80 | + if (!static::isRef($ref)) { |
|
81 | 81 | return null; |
82 | 82 | } |
83 | 83 |
@@ -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 |
@@ -220,7 +220,7 @@ |
||
220 | 220 | \MongoClient::RP_SECONDARY_PREFERRED, |
221 | 221 | \MongoClient::RP_NEAREST |
222 | 222 | ]; |
223 | - if (! in_array($readPreference, $availableReadPreferences)) { |
|
223 | + if (!in_array($readPreference, $availableReadPreferences)) { |
|
224 | 224 | trigger_error("The value '$readPreference' is not valid as read preference type", E_WARNING); |
225 | 225 | return $this; |
226 | 226 | } |
@@ -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 |