@@ -75,6 +75,9 @@ |
||
75 | 75 | } |
76 | 76 | } |
77 | 77 | |
78 | + /** |
|
79 | + * @param null|callable $cb |
|
80 | + */ |
|
78 | 81 | public static function addToArray(&$arr, $cb) { |
79 | 82 | if ($arr === null) { |
80 | 83 | $arr = []; |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | * Converts string of flags to integer or standard text representation |
98 | 98 | * @param string $mode Mode |
99 | 99 | * @param boolean $text Text? |
100 | - * @return mixed |
|
100 | + * @return string |
|
101 | 101 | */ |
102 | 102 | public static function convertFlags($mode, $text = false) { |
103 | 103 | $plus = strpos($mode, '+') !== false; |
@@ -390,7 +390,7 @@ discard block |
||
390 | 390 | * @param integer $offset Offset |
391 | 391 | * @param callable $cb Callback |
392 | 392 | * @param integer $pri Priority |
393 | - * @return boolean |
|
393 | + * @return string|boolean |
|
394 | 394 | */ |
395 | 395 | public function read($length, $offset = null, $cb = null, $pri = EIO_PRI_DEFAULT) { |
396 | 396 | $cb = CallbackWrapper::forceWrap($cb); |
@@ -542,7 +542,10 @@ discard block |
||
542 | 542 | * @param integer &$offset |
543 | 543 | * @param integer &$pri |
544 | 544 | * @param string &$buf |
545 | - * @return callable |
|
545 | + * @param integer $offset |
|
546 | + * @param integer $pri |
|
547 | + * @param string $buf |
|
548 | + * @return \Closure |
|
546 | 549 | */ |
547 | 550 | protected function readAllGenHandler($cb, $size, &$offset, &$pri, &$buf) { |
548 | 551 | return function ($file, $data) use ($cb, $size, &$offset, &$pri, &$buf) { |
@@ -595,7 +598,7 @@ discard block |
||
595 | 598 | * @param integer $size |
596 | 599 | * @param integer $offset |
597 | 600 | * @param integer $pri |
598 | - * @return callable |
|
601 | + * @return \Closure |
|
599 | 602 | */ |
600 | 603 | protected function readAllChunkedGenHandler($cb, $chunkcb, $size, &$offset, $pri) { |
601 | 604 | return function ($file, $data) use ($cb, $chunkcb, $size, &$offset, $pri) { |
@@ -145,7 +145,6 @@ discard block |
||
145 | 145 | * |
146 | 146 | * @param $function_name |
147 | 147 | * @param $payload |
148 | - * @param null $context |
|
149 | 148 | * @param null $unique |
150 | 149 | */ |
151 | 150 | public function runJob($function_name, $payload, $unique = null) { |
@@ -165,7 +164,6 @@ discard block |
||
165 | 164 | * |
166 | 165 | * @param $function_name |
167 | 166 | * @param $payload |
168 | - * @param null $context |
|
169 | 167 | * @param null $unique |
170 | 168 | */ |
171 | 169 | public function doNormal($function_name, $payload, $unique = null) { |
@@ -183,7 +181,6 @@ discard block |
||
183 | 181 | * |
184 | 182 | * @param $function_name |
185 | 183 | * @param $payload |
186 | - * @param null $context |
|
187 | 184 | * @param null $unique |
188 | 185 | */ |
189 | 186 | public function doBackground($function_name, $payload, $unique = null) { |
@@ -201,7 +198,6 @@ discard block |
||
201 | 198 | * |
202 | 199 | * @param $function_name |
203 | 200 | * @param $payload |
204 | - * @param null $context |
|
205 | 201 | * @param null $unique |
206 | 202 | */ |
207 | 203 | public function doHigh($function_name, $payload, $unique = null) { |
@@ -219,7 +215,6 @@ discard block |
||
219 | 215 | * |
220 | 216 | * @param $function_name |
221 | 217 | * @param $payload |
222 | - * @param null $context |
|
223 | 218 | * @param null $unique |
224 | 219 | */ |
225 | 220 | public function doHighBackground($function_name, $payload, $unique = null) { |
@@ -237,7 +232,6 @@ discard block |
||
237 | 232 | * |
238 | 233 | * @param $function_name |
239 | 234 | * @param $payload |
240 | - * @param null $context |
|
241 | 235 | * @param null $unique |
242 | 236 | */ |
243 | 237 | public function doLow($function_name, $payload, $unique = null) { |
@@ -255,7 +249,6 @@ discard block |
||
255 | 249 | * |
256 | 250 | * @param $function_name |
257 | 251 | * @param $payload |
258 | - * @param null $context |
|
259 | 252 | * @param null $unique |
260 | 253 | */ |
261 | 254 | public function doLowBackground($function_name, $payload, $unique = null) { |
@@ -298,7 +291,7 @@ discard block |
||
298 | 291 | /** |
299 | 292 | * Low level commands sender |
300 | 293 | * |
301 | - * @param $commandName |
|
294 | + * @param string $commandName |
|
302 | 295 | * @param $payload |
303 | 296 | * @param callable|null $doneCallback |
304 | 297 | */ |