@@ -165,7 +165,7 @@ |
||
165 | 165 | * 获取 UserId. |
166 | 166 | * |
167 | 167 | * @param $request |
168 | - * @param $verifier |
|
168 | + * @param callable $verifier |
|
169 | 169 | * |
170 | 170 | * @return int |
171 | 171 | */ |
@@ -322,7 +322,7 @@ |
||
322 | 322 | /** |
323 | 323 | * 通过 attentions 或 favorites 查找帖子. |
324 | 324 | * |
325 | - * @param $table |
|
325 | + * @param string $table |
|
326 | 326 | * @param $user_id |
327 | 327 | * @param $columns |
328 | 328 | * |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | /** |
239 | 239 | * 设置这个引入项目是否是嵌套的. |
240 | 240 | * |
241 | - * @param $parent string 父引入项名 |
|
241 | + * @param string $parent string 父引入项名 |
|
242 | 242 | * |
243 | 243 | * @return $this |
244 | 244 | */ |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | /** |
286 | 286 | * 获取一个新的自身的实例. |
287 | 287 | * |
288 | - * @param $name |
|
288 | + * @param string $name |
|
289 | 289 | * |
290 | 290 | * @return Includable |
291 | 291 | */ |
@@ -317,7 +317,7 @@ discard block |
||
317 | 317 | /** |
318 | 318 | * 添加一个子引入项目. |
319 | 319 | * |
320 | - * @param mixed $children |
|
320 | + * @param Includable $children |
|
321 | 321 | */ |
322 | 322 | public function addChildren(Includable $children) |
323 | 323 | { |
@@ -22,8 +22,8 @@ |
||
22 | 22 | public function register() |
23 | 23 | { |
24 | 24 | $this->app->singleton('auto-correct', function () { |
25 | - return new AutoCorrect(); |
|
26 | - }); |
|
25 | + return new AutoCorrect(); |
|
26 | + }); |
|
27 | 27 | |
28 | 28 | $this->app->singleton('markdown', function () { |
29 | 29 | return new Parsedown(); |