@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | |
| 115 | 115 | /** |
| 116 | 116 | * Key |
| 117 | - * @return string |
|
| 117 | + * @return integer |
|
| 118 | 118 | */ |
| 119 | 119 | public function key() { |
| 120 | 120 | return $this->pos; |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | * @param string $id Cursor's ID |
| 194 | 194 | * @param string $col Collection's name |
| 195 | 195 | * @param Connection $conn Network connection (MongoClientConnection) |
| 196 | - * @return void |
|
| 196 | + * @return string |
|
| 197 | 197 | */ |
| 198 | 198 | public function __construct($id, $col, $conn) { |
| 199 | 199 | $this->id = $id; |
@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | * @param string $input The input string |
| 6 | 6 | * @param int $position |
| 7 | 7 | * @param int|null $length |
| 8 | - * @return string|boolean The extracted part of string or false on failure |
|
| 8 | + * @return string The extracted part of string or false on failure |
|
| 9 | 9 | */ |
| 10 | 10 | function mb_orig_substr($input, $position, $length = null) { |
| 11 | 11 | return substr($input, $position, $length); |
@@ -24,11 +24,18 @@ discard block |
||
| 24 | 24 | return serialize($m); |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | + /** |
|
| 28 | + * @param string $m |
|
| 29 | + */ |
|
| 27 | 30 | function igbinary_unserialize($m) { |
| 28 | 31 | return unserialize($m); |
| 29 | 32 | } |
| 30 | 33 | } |
| 31 | 34 | if (!function_exists('setTimeout')) { |
| 35 | + |
|
| 36 | + /** |
|
| 37 | + * @param Closure $cb |
|
| 38 | + */ |
|
| 32 | 39 | function setTimeout($cb, $timeout = null, $id = null, $priority = null) { |
| 33 | 40 | return \PHPDaemon\Core\Timer::add($cb, $timeout, $id, $priority); |
| 34 | 41 | } |