@@ -338,7 +338,6 @@ discard block |
||
338 | 338 | |
339 | 339 | /** |
340 | 340 | * Normalize encoding name |
341 | - * @param string $str Encoding name |
|
342 | 341 | * @return string |
343 | 342 | */ |
344 | 343 | public static function normalizeEncoding($encodingLabel) |
@@ -366,7 +365,6 @@ discard block |
||
366 | 365 | |
367 | 366 | /** |
368 | 367 | * Encode |
369 | - * @param string $str Any string |
|
370 | 368 | * @return string |
371 | 369 | */ |
372 | 370 | public static function encode($encodingLabel, $text) |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | * @param string $haystack |
16 | 16 | * @param mixed $needle |
17 | 17 | * @param int $offset |
18 | - * @return bool|int |
|
18 | + * @return integer |
|
19 | 19 | */ |
20 | 20 | function mb_orig_strpos($haystack, $needle, $offset = 0) |
21 | 21 | { |
@@ -45,12 +45,19 @@ discard block |
||
45 | 45 | return serialize($m); |
46 | 46 | } |
47 | 47 | |
48 | + /** |
|
49 | + * @param string $m |
|
50 | + */ |
|
48 | 51 | function igbinary_unserialize($m) |
49 | 52 | { |
50 | 53 | return unserialize($m); |
51 | 54 | } |
52 | 55 | } |
53 | 56 | if (!function_exists('setTimeout')) { |
57 | + |
|
58 | + /** |
|
59 | + * @param Closure $cb |
|
60 | + */ |
|
54 | 61 | function setTimeout($cb, $timeout = null, $id = null, $priority = null) |
55 | 62 | { |
56 | 63 | return \PHPDaemon\Core\Timer::add($cb, $timeout, $id, $priority); |
@@ -108,7 +108,7 @@ |
||
108 | 108 | |
109 | 109 | /** |
110 | 110 | * @param string $cmd Command |
111 | - * @return integer |
|
111 | + * @return string |
|
112 | 112 | */ |
113 | 113 | public static function getCodeByCommand($cmd) |
114 | 114 | { |
@@ -108,7 +108,7 @@ |
||
108 | 108 | |
109 | 109 | /** |
110 | 110 | * @param string $cmd Command |
111 | - * @return integer |
|
111 | + * @return string |
|
112 | 112 | */ |
113 | 113 | public static function getCodeByCommand($cmd) |
114 | 114 | { |
@@ -474,6 +474,7 @@ discard block |
||
474 | 474 | /** |
475 | 475 | * Check file syntax via runkit_lint_file if supported or via php -l |
476 | 476 | * @param string File name |
477 | + * @param string $filename |
|
477 | 478 | * @return boolean |
478 | 479 | */ |
479 | 480 | public static function lintFile($filename) |
@@ -672,6 +673,7 @@ discard block |
||
672 | 673 | * Send message to the log |
673 | 674 | * |
674 | 675 | * @param array ...$args |
676 | + * @param string $args |
|
675 | 677 | */ |
676 | 678 | public static function log(...$args) |
677 | 679 | { |
@@ -260,8 +260,8 @@ |
||
260 | 260 | |
261 | 261 | /** |
262 | 262 | * Override a standard PHP function |
263 | - * @param string $local e.g. isUploadedFile |
|
264 | 263 | * @param string $real e.g. is_uploaded_file |
264 | + * @param string $camelCase |
|
265 | 265 | */ |
266 | 266 | protected function override($camelCase, $real) |
267 | 267 | { |
@@ -56,6 +56,7 @@ |
||
56 | 56 | /** |
57 | 57 | * Executes one callback from the top with given arguments without taking it out |
58 | 58 | * @param mixed ...$args Arguments |
59 | + * @param \PHPDaemon\Clients\Gibson\Connection $args |
|
59 | 60 | * @return boolean |
60 | 61 | */ |
61 | 62 | public function executeAndKeepOne(...$args) |
@@ -89,9 +89,8 @@ discard block |
||
89 | 89 | |
90 | 90 | /** |
91 | 91 | * Calls a local method |
92 | - * @param string $method Method name |
|
93 | 92 | * @param mixed ...$args Arguments |
94 | - * @return this |
|
93 | + * @return DNode |
|
95 | 94 | */ |
96 | 95 | public function callLocal(...$args) |
97 | 96 | { |
@@ -178,7 +177,7 @@ discard block |
||
178 | 177 | * Calls a remote method |
179 | 178 | * @param string $method Method name |
180 | 179 | * @param mixed ...$args Arguments |
181 | - * @return this |
|
180 | + * @return DNode |
|
182 | 181 | */ |
183 | 182 | public function callRemote($method, ...$args) |
184 | 183 | { |
@@ -190,7 +189,7 @@ discard block |
||
190 | 189 | * Calls a remote method with array of arguments |
191 | 190 | * @param string $method Method name |
192 | 191 | * @param array $args Arguments |
193 | - * @return this |
|
192 | + * @return DNode |
|
194 | 193 | */ |
195 | 194 | public function callRemoteArray($method, $args) |
196 | 195 | { |
@@ -227,7 +226,7 @@ discard block |
||
227 | 226 | /** |
228 | 227 | * Encodes value into JSON |
229 | 228 | * @param mixed $m Value |
230 | - * @return this |
|
229 | + * @return string |
|
231 | 230 | */ |
232 | 231 | public static function toJson($m) |
233 | 232 | { |
@@ -263,7 +262,7 @@ discard block |
||
263 | 262 | /** |
264 | 263 | * Encodes value into JSON for debugging purposes |
265 | 264 | * @param mixed $m Data |
266 | - * @return void |
|
265 | + * @return string |
|
267 | 266 | */ |
268 | 267 | public static function toJsonDebug($m) |
269 | 268 | { |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * Propagate event |
31 | 31 | * @param string $name Event name |
32 | 32 | * @param mixed ...$args Arguments |
33 | - * @return this |
|
33 | + * @return EventHandlers |
|
34 | 34 | */ |
35 | 35 | public function event($name, ...$args) |
36 | 36 | { |
@@ -52,7 +52,8 @@ discard block |
||
52 | 52 | * Propagate event |
53 | 53 | * @param string $name Event name |
54 | 54 | * @param mixed ...$args Arguments |
55 | - * @return this |
|
55 | + * @param string|false $args |
|
56 | + * @return EventHandlers |
|
56 | 57 | */ |
57 | 58 | public function trigger($name, ...$args) |
58 | 59 | { |
@@ -106,7 +107,7 @@ discard block |
||
106 | 107 | * Bind event or events |
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 bind($event, $cb) |
112 | 113 | { |
@@ -125,7 +126,7 @@ discard block |
||
125 | 126 | * @alias EventHandlers::bind |
126 | 127 | * @param string|array $event Event name |
127 | 128 | * @param callable $cb Callback |
128 | - * @return this |
|
129 | + * @return EventHandlers |
|
129 | 130 | */ |
130 | 131 | public function on($event, $cb) |
131 | 132 | { |
@@ -136,7 +137,7 @@ discard block |
||
136 | 137 | * Unbind event(s) or callback from event(s) |
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 unbind($event, $cb = null) |
142 | 143 | { |
@@ -164,7 +165,7 @@ discard block |
||
164 | 165 | * @alias EventHandlers::unbind |
165 | 166 | * @param string|array $event Event name |
166 | 167 | * @param callable $cb Callback, optional |
167 | - * @return this |
|
168 | + * @return EventHandlers |
|
168 | 169 | */ |
169 | 170 | public function off($event, $cb = null) |
170 | 171 | { |