@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | * get or set name |
| 124 | 124 | * |
| 125 | 125 | * @param string|null $name |
| 126 | - * @return mixed |
|
| 126 | + * @return null|string |
|
| 127 | 127 | */ |
| 128 | 128 | public function name($name = null) |
| 129 | 129 | { |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | /** |
| 243 | 243 | * kill self |
| 244 | 244 | * |
| 245 | - * @param bool|true $block |
|
| 245 | + * @param boolean $block |
|
| 246 | 246 | * @param int $signal |
| 247 | 247 | */ |
| 248 | 248 | public function shutdown($block = true, $signal = SIGTERM) |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | /** |
| 265 | 265 | * waiting for the sub process exit |
| 266 | 266 | * |
| 267 | - * @param bool|true $block if block the process |
|
| 267 | + * @param boolean $block if block the process |
|
| 268 | 268 | * @param int $sleep default 0.1s check sub process status |
| 269 | 269 | * every $sleep milliseconds. |
| 270 | 270 | */ |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | /** |
| 385 | 385 | * get sub process callback |
| 386 | 386 | * |
| 387 | - * @return array|callable|null |
|
| 387 | + * @return callable |
|
| 388 | 388 | */ |
| 389 | 389 | protected function getCallable() |
| 390 | 390 | { |
@@ -83,8 +83,8 @@ discard block |
||
| 83 | 83 | /** |
| 84 | 84 | * init queue |
| 85 | 85 | * |
| 86 | - * @param $ipc_filename |
|
| 87 | - * @param $msg_type |
|
| 86 | + * @param string $ipc_filename |
|
| 87 | + * @param integer $msg_type |
|
| 88 | 88 | * @throws \Exception |
| 89 | 89 | */ |
| 90 | 90 | protected function initQueue($ipc_filename, $msg_type) |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | * update the max size of queue |
| 230 | 230 | * need root |
| 231 | 231 | * |
| 232 | - * @param $size |
|
| 232 | + * @param integer $size |
|
| 233 | 233 | * @throws \Exception |
| 234 | 234 | * @return bool |
| 235 | 235 | */ |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | /** |
| 257 | 257 | * check the privilege of update the queue's status |
| 258 | 258 | * |
| 259 | - * @param $key |
|
| 259 | + * @param string $key |
|
| 260 | 260 | * @throws \Exception |
| 261 | 261 | */ |
| 262 | 262 | private function checkSetPrivilege($key) |
@@ -24,7 +24,6 @@ discard block |
||
| 24 | 24 | /** |
| 25 | 25 | * @param string $filename fifo filename |
| 26 | 26 | * @param int $mode |
| 27 | - * @param bool $block if blocking |
|
| 28 | 27 | */ |
| 29 | 28 | public function __construct($filename = '/tmp/simple-fork.pipe', $mode = 0666) |
| 30 | 29 | { |
@@ -55,7 +54,7 @@ discard block |
||
| 55 | 54 | * get value from the queue of channel |
| 56 | 55 | * |
| 57 | 56 | * @param bool $block if block when the queue is empty |
| 58 | - * @return bool|string |
|
| 57 | + * @return null|string |
|
| 59 | 58 | */ |
| 60 | 59 | public function get($block = false) |
| 61 | 60 | { |
@@ -94,7 +93,7 @@ discard block |
||
| 94 | 93 | /** |
| 95 | 94 | * remove the queue resource |
| 96 | 95 | * |
| 97 | - * @return bool |
|
| 96 | + * @return boolean|null |
|
| 98 | 97 | */ |
| 99 | 98 | public function remove() |
| 100 | 99 | { |