@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | * @param boolean $reply Is an answer expected? |
| 183 | 183 | * @param callable $sentcb Sent callback |
| 184 | 184 | * @callback $sentcb ( ) |
| 185 | - * @return callable |
|
| 185 | + * @return \Closure |
|
| 186 | 186 | */ |
| 187 | 187 | protected function requestCbProducer($opcode, $data, $reply = false, $sentcb = null) |
| 188 | 188 | { |
@@ -1580,6 +1580,9 @@ discard block |
||
| 1580 | 1580 | }, $session['conn']); |
| 1581 | 1581 | } |
| 1582 | 1582 | |
| 1583 | + /** |
|
| 1584 | + * @param \Closure $cb |
|
| 1585 | + */ |
|
| 1583 | 1586 | public function saslScrumSHA1Conversation($dbname, $query, $cb, $conn = null) |
| 1584 | 1587 | { |
| 1585 | 1588 | if ($this->safeMode) { |
@@ -70,7 +70,6 @@ |
||
| 70 | 70 | * Magic __call |
| 71 | 71 | * Example: |
| 72 | 72 | * $redis->lpush('mylist', microtime(true)); |
| 73 | - * @param string $name Command name |
|
| 74 | 73 | * @param array $args Arguments |
| 75 | 74 | * @return void |
| 76 | 75 | */ |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | /** |
| 207 | 207 | * Sets a callback which is going to be fired always when we have a room for more jobs |
| 208 | 208 | * @param callable $cb Callback |
| 209 | - * @return this |
|
| 209 | + * @return ComplexJob |
|
| 210 | 210 | */ |
| 211 | 211 | public function more($cb = null) |
| 212 | 212 | { |
@@ -303,7 +303,7 @@ discard block |
||
| 303 | 303 | /** |
| 304 | 304 | * Sets a limit of simultaneously executing tasks |
| 305 | 305 | * @param integer $n Natural number or -1 (no limit) |
| 306 | - * @return this |
|
| 306 | + * @return ComplexJob |
|
| 307 | 307 | */ |
| 308 | 308 | public function maxConcurrency($n = -1) |
| 309 | 309 | { |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | * Returns a proxy callback function with logging for debugging purposes |
| 63 | 63 | * @param callable $cb Callback |
| 64 | 64 | * @param mixed $name Data |
| 65 | - * @return callable |
|
| 65 | + * @return \Closure |
|
| 66 | 66 | */ |
| 67 | 67 | public static function proxy($cb, $name = null) |
| 68 | 68 | { |
@@ -106,7 +106,7 @@ |
||
| 106 | 106 | * @param integer $timeout Timeout |
| 107 | 107 | * @param integer|string $id Timer ID |
| 108 | 108 | * @param integer $priority Priority |
| 109 | - * @return integer|string Timer ID |
|
| 109 | + * @return integer|null Timer ID |
|
| 110 | 110 | */ |
| 111 | 111 | public static function add($cb, $timeout = null, $id = null, $priority = null) |
| 112 | 112 | { |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | * Converts string of flags to integer or standard text representation |
| 101 | 101 | * @param string $mode Mode |
| 102 | 102 | * @param boolean $text Text? |
| 103 | - * @return mixed |
|
| 103 | + * @return string |
|
| 104 | 104 | */ |
| 105 | 105 | public static function convertFlags($mode, $text = false) |
| 106 | 106 | { |
@@ -412,7 +412,7 @@ discard block |
||
| 412 | 412 | * @param integer $offset Offset |
| 413 | 413 | * @param callable $cb Callback |
| 414 | 414 | * @param integer $pri Priority |
| 415 | - * @return boolean |
|
| 415 | + * @return string|boolean |
|
| 416 | 416 | */ |
| 417 | 417 | public function read($length, $offset = null, $cb = null, $pri = EIO_PRI_DEFAULT) |
| 418 | 418 | { |
@@ -577,7 +577,10 @@ discard block |
||
| 577 | 577 | * @param integer &$offset |
| 578 | 578 | * @param integer &$pri |
| 579 | 579 | * @param string &$buf |
| 580 | - * @return callable |
|
| 580 | + * @param integer $offset |
|
| 581 | + * @param integer $pri |
|
| 582 | + * @param string $buf |
|
| 583 | + * @return \Closure |
|
| 581 | 584 | */ |
| 582 | 585 | protected function readAllGenHandler($cb, $size, &$offset, &$pri, &$buf) |
| 583 | 586 | { |
@@ -645,7 +648,7 @@ discard block |
||
| 645 | 648 | * @param integer $size |
| 646 | 649 | * @param integer $offset |
| 647 | 650 | * @param integer $pri |
| 648 | - * @return callable |
|
| 651 | + * @return \Closure |
|
| 649 | 652 | */ |
| 650 | 653 | protected function readAllChunkedGenHandler($cb, $chunkcb, $size, &$offset, $pri) |
| 651 | 654 | { |
@@ -446,7 +446,7 @@ discard block |
||
| 446 | 446 | * @param integer $offset Offset |
| 447 | 447 | * @param integer $length Length |
| 448 | 448 | * @param integer $pri Priority |
| 449 | - * @return true Success |
|
| 449 | + * @return boolean Success |
|
| 450 | 450 | */ |
| 451 | 451 | public static function sendfile( |
| 452 | 452 | $outfd, |
@@ -607,10 +607,10 @@ discard block |
||
| 607 | 607 | |
| 608 | 608 | /** |
| 609 | 609 | * Generates closure tempnam handler |
| 610 | - * @param $dir |
|
| 611 | - * @param $prefix |
|
| 612 | - * @param $cb |
|
| 613 | - * @param $tries |
|
| 610 | + * @param string $dir |
|
| 611 | + * @param string $prefix |
|
| 612 | + * @param CallbackWrapper|null $cb |
|
| 613 | + * @param integer $tries |
|
| 614 | 614 | */ |
| 615 | 615 | protected static function tempnamHandler($dir, $prefix, $cb, &$tries) |
| 616 | 616 | { |
@@ -142,7 +142,7 @@ |
||
| 142 | 142 | * @param string $path Path |
| 143 | 143 | * @param mixed $cb Callback |
| 144 | 144 | * @param integer $flags Look inotify_add_watch() |
| 145 | - * @return true |
|
| 145 | + * @return boolean |
|
| 146 | 146 | */ |
| 147 | 147 | public function addWatch($path, $cb, $flags = null) |
| 148 | 148 | { |
@@ -164,7 +164,7 @@ |
||
| 164 | 164 | * Returns instance object |
| 165 | 165 | * @param string $arg name / array config / ConfigSection |
| 166 | 166 | * @param boolean $spawn Spawn? Default is true |
| 167 | - * @return this |
|
| 167 | + * @return Pool |
|
| 168 | 168 | */ |
| 169 | 169 | public static function getInstance($arg = '', $spawn = true) |
| 170 | 170 | { |