@@ -474,6 +474,7 @@ |
||
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) |
@@ -113,7 +113,7 @@ |
||
113 | 113 | |
114 | 114 | /** |
115 | 115 | * Reset |
116 | - * @return this |
|
116 | + * @return DeferredEvent |
|
117 | 117 | */ |
118 | 118 | public function reset() |
119 | 119 | { |
@@ -331,7 +331,7 @@ |
||
331 | 331 | |
332 | 332 | /** |
333 | 333 | * Handles the output from downstream requests |
334 | - * @param object $req |
|
334 | + * @param \stdClass $req |
|
335 | 335 | * @param string $appStatus |
336 | 336 | * @param string $protoStatus |
337 | 337 | * @return void |
@@ -344,6 +344,9 @@ |
||
344 | 344 | |
345 | 345 | /** |
346 | 346 | * End request |
347 | + * @param \stdClass $req |
|
348 | + * @param integer $appStatus |
|
349 | + * @param integer $protoStatus |
|
347 | 350 | * @return void |
348 | 351 | */ |
349 | 352 | public function endRequest($req, $appStatus, $protoStatus) |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | |
106 | 106 | /** |
107 | 107 | * Get real frame type identificator |
108 | - * @param $type |
|
108 | + * @param string|null $type |
|
109 | 109 | * @return integer |
110 | 110 | */ |
111 | 111 | public function getFrameType($type) |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | |
219 | 219 | /** |
220 | 220 | * Called when we're going to handshake. |
221 | - * @return boolean Handshake status |
|
221 | + * @return false|null Handshake status |
|
222 | 222 | */ |
223 | 223 | public function handshake() |
224 | 224 | { |
@@ -446,6 +446,9 @@ discard block |
||
446 | 446 | return true; |
447 | 447 | } |
448 | 448 | |
449 | + /** |
|
450 | + * @param string $proto |
|
451 | + */ |
|
449 | 452 | protected function switchToProtocol($proto) |
450 | 453 | { |
451 | 454 | $class = '\\PHPDaemon\\Servers\\WebSocket\\Protocols\\' . $proto; |
@@ -137,9 +137,9 @@ |
||
137 | 137 | |
138 | 138 | /** |
139 | 139 | * Apply mask |
140 | - * @param $data |
|
140 | + * @param string|false $data |
|
141 | 141 | * @param string|false $mask |
142 | - * @return mixed |
|
142 | + * @return string |
|
143 | 143 | */ |
144 | 144 | public function mask($data, $mask) |
145 | 145 | { |
@@ -71,7 +71,7 @@ |
||
71 | 71 | * Called when new frame received. |
72 | 72 | * @param string $data Frame's data. |
73 | 73 | * @param string $type Frame's type ("STRING" OR "BINARY"). |
74 | - * @return boolean Success. |
|
74 | + * @return boolean|null Success. |
|
75 | 75 | */ |
76 | 76 | public function onFrame($data, $type) |
77 | 77 | { |
@@ -91,6 +91,7 @@ |
||
91 | 91 | /** |
92 | 92 | * Set ID of this Thread |
93 | 93 | * @param integer Id |
94 | + * @param integer $id |
|
94 | 95 | * @return void |
95 | 96 | */ |
96 | 97 | public function setId($id) |
@@ -371,7 +371,7 @@ |
||
371 | 371 | } |
372 | 372 | |
373 | 373 | /** |
374 | - * @param $signo |
|
374 | + * @param integer $signo |
|
375 | 375 | */ |
376 | 376 | public function signalToChildren($signo) |
377 | 377 | { |