@@ -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 | { |
@@ -361,7 +361,7 @@ |
||
| 361 | 361 | * @param string $method [@todo description] |
| 362 | 362 | * @param object $req [@todo description] |
| 363 | 363 | * @param object $upstream [@todo description] |
| 364 | - * @return object |
|
| 364 | + * @return string |
|
| 365 | 365 | */ |
| 366 | 366 | public function callMethod($method, $req, $upstream) |
| 367 | 367 | { |
@@ -46,6 +46,7 @@ |
||
| 46 | 46 | /** |
| 47 | 47 | * Executes one callback from the top with given arguments without taking it out |
| 48 | 48 | * @param mixed ...$args Arguments |
| 49 | + * @param \PHPDaemon\Clients\Gibson\Connection $args |
|
| 49 | 50 | * @return boolean |
| 50 | 51 | */ |
| 51 | 52 | public function executeAndKeepOne(...$args) |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | * Propagate event |
| 30 | 30 | * @param string $name Event name |
| 31 | 31 | * @param mixed ...$args Arguments |
| 32 | - * @return this |
|
| 32 | + * @return EventHandlers |
|
| 33 | 33 | */ |
| 34 | 34 | public function event($name, ...$args) |
| 35 | 35 | { |
@@ -51,7 +51,8 @@ discard block |
||
| 51 | 51 | * Propagate event |
| 52 | 52 | * @param string $name Event name |
| 53 | 53 | * @param mixed ...$args Arguments |
| 54 | - * @return this |
|
| 54 | + * @param string|false $args |
|
| 55 | + * @return EventHandlers |
|
| 55 | 56 | */ |
| 56 | 57 | public function trigger($name, ...$args) |
| 57 | 58 | { |
@@ -106,7 +107,7 @@ discard block |
||
| 106 | 107 | * @alias EventHandlers::bind |
| 107 | 108 | * @param string|array $event Event name |
| 108 | 109 | * @param callable $cb Callback |
| 109 | - * @return this |
|
| 110 | + * @return EventHandlers |
|
| 110 | 111 | */ |
| 111 | 112 | public function on($event, $cb) |
| 112 | 113 | { |
@@ -117,7 +118,7 @@ discard block |
||
| 117 | 118 | * Bind event or events |
| 118 | 119 | * @param string|array $event Event name |
| 119 | 120 | * @param callable $cb Callback |
| 120 | - * @return this |
|
| 121 | + * @return EventHandlers |
|
| 121 | 122 | */ |
| 122 | 123 | public function bind($event, $cb) |
| 123 | 124 | { |
@@ -136,7 +137,7 @@ discard block |
||
| 136 | 137 | * @alias EventHandlers::unbind |
| 137 | 138 | * @param string|array $event Event name |
| 138 | 139 | * @param callable $cb Callback, optional |
| 139 | - * @return this |
|
| 140 | + * @return EventHandlers |
|
| 140 | 141 | */ |
| 141 | 142 | public function off($event, $cb = null) |
| 142 | 143 | { |
@@ -147,7 +148,7 @@ discard block |
||
| 147 | 148 | * Unbind event(s) or callback from event(s) |
| 148 | 149 | * @param string|array $event Event name |
| 149 | 150 | * @param callable $cb Callback, optional |
| 150 | - * @return this |
|
| 151 | + * @return EventHandlers |
|
| 151 | 152 | */ |
| 152 | 153 | public function unbind($event, $cb = null) |
| 153 | 154 | { |
@@ -179,7 +179,7 @@ |
||
| 179 | 179 | |
| 180 | 180 | /** |
| 181 | 181 | * @param string $cmd Command |
| 182 | - * @return integer |
|
| 182 | + * @return string |
|
| 183 | 183 | */ |
| 184 | 184 | public static function getCodeByCommand($cmd) |
| 185 | 185 | { |
@@ -162,7 +162,7 @@ |
||
| 162 | 162 | |
| 163 | 163 | /** |
| 164 | 164 | * Apply mask |
| 165 | - * @param $data |
|
| 165 | + * @param string|false $data |
|
| 166 | 166 | * @param string|false $mask |
| 167 | 167 | * @return mixed |
| 168 | 168 | */ |