@@ -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 | { |
@@ -49,9 +49,9 @@ discard block |
||
| 49 | 49 | /** |
| 50 | 50 | * 添加或覆盖一个key |
| 51 | 51 | * @param string $key |
| 52 | - * @param mixed $value |
|
| 52 | + * @param integer $value |
|
| 53 | 53 | * @param int $expire expire time in seconds |
| 54 | - * @return mixed |
|
| 54 | + * @return boolean |
|
| 55 | 55 | */ |
| 56 | 56 | public function set($key, $value, $expire = 0) |
| 57 | 57 | { |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | /** |
| 84 | 84 | * 创建缓存文件 |
| 85 | 85 | * @param $key |
| 86 | - * @return bool|string |
|
| 86 | + * @return false|string |
|
| 87 | 87 | */ |
| 88 | 88 | private function createCacheFile($key) |
| 89 | 89 | { |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | /** |
| 105 | 105 | * 判断Key是否存在 |
| 106 | 106 | * @param $key |
| 107 | - * @return mixed |
|
| 107 | + * @return boolean |
|
| 108 | 108 | */ |
| 109 | 109 | public function has($key) |
| 110 | 110 | { |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | |
| 186 | 186 | /** |
| 187 | 187 | * 清楚所有缓存 |
| 188 | - * @return mixed |
|
| 188 | + * @return boolean |
|
| 189 | 189 | */ |
| 190 | 190 | public function flush() |
| 191 | 191 | { |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | |
| 195 | 195 | /** |
| 196 | 196 | * 递归删除目录 |
| 197 | - * @param $dir |
|
| 197 | + * @param string $dir |
|
| 198 | 198 | * @return bool |
| 199 | 199 | */ |
| 200 | 200 | function delTree($dir) |