@@ -48,6 +48,9 @@ discard block |
||
| 48 | 48 | $this->wc = $wc; |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | + /** |
|
| 52 | + * @param string $value |
|
| 53 | + */ |
|
| 51 | 54 | private function checkBlank($value) |
| 52 | 55 | { |
| 53 | 56 | $value = trim($value); |
@@ -215,7 +218,7 @@ discard block |
||
| 215 | 218 | * Gets the current date. |
| 216 | 219 | * |
| 217 | 220 | * @param int $offset Milliseconds offset |
| 218 | - * @return \MongoDB\BSON\UTCDateTime the current date |
|
| 221 | + * @return null|MongoDB\BSON\UTCDateTime the current date |
|
| 219 | 222 | */ |
| 220 | 223 | protected function now($offset = 0) |
| 221 | 224 | { |
@@ -40,6 +40,9 @@ |
||
| 40 | 40 | $this->timeField = $this->checkBlank($timeField); |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | + /** |
|
| 44 | + * @param string $value |
|
| 45 | + */ |
|
| 43 | 46 | private function checkBlank($value) |
| 44 | 47 | { |
| 45 | 48 | $value = trim($value); |