@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | if (!function_exists('request')) { |
380 | 380 | /** |
381 | 381 | * 获取当前Request对象实例 |
382 | - * @return Request |
|
382 | + * @return think\Request |
|
383 | 383 | */ |
384 | 384 | function request(): \think\Request |
385 | 385 | { |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | /** |
392 | 392 | * 创建普通 Response 对象实例 |
393 | 393 | * @param mixed $data 输出数据 |
394 | - * @param int|string $code 状态码 |
|
394 | + * @param integer $code 状态码 |
|
395 | 395 | * @param array $header 头信息 |
396 | 396 | * @param string $type |
397 | 397 | * @return Response |
@@ -16,6 +16,8 @@ discard block |
||
16 | 16 | |
17 | 17 | use think\App; |
18 | 18 | use think\Container; |
19 | +use think\Response; |
|
20 | +use think\Validate; |
|
19 | 21 | use think\exception\HttpException; |
20 | 22 | use think\exception\HttpResponseException; |
21 | 23 | use think\facade\Cache; |
@@ -28,7 +30,6 @@ discard block |
||
28 | 30 | use think\facade\Request; |
29 | 31 | use think\facade\Route; |
30 | 32 | use think\facade\Session; |
31 | -use think\Response; |
|
32 | 33 | use think\response\File; |
33 | 34 | use think\response\Json; |
34 | 35 | use think\response\Jsonp; |
@@ -36,7 +37,6 @@ discard block |
||
36 | 37 | use think\response\View; |
37 | 38 | use think\response\Xml; |
38 | 39 | use think\route\Url as UrlBuild; |
39 | -use think\Validate; |
|
40 | 40 | |
41 | 41 | if (!function_exists('abort')) { |
42 | 42 | /** |
@@ -57,7 +57,7 @@ |
||
57 | 57 | * 获取驱动配置 |
58 | 58 | * @param string $store |
59 | 59 | * @param string $name |
60 | - * @param null $default |
|
60 | + * @param string $default |
|
61 | 61 | * @return array |
62 | 62 | */ |
63 | 63 | public function getStoreConfig(string $store, string $name = null, $default = null) |
@@ -108,7 +108,7 @@ |
||
108 | 108 | * 追加(数组)缓存 |
109 | 109 | * @access public |
110 | 110 | * @param string $name 缓存变量名 |
111 | - * @param mixed $value 存储数据 |
|
111 | + * @param string $value 存储数据 |
|
112 | 112 | * @return void |
113 | 113 | */ |
114 | 114 | public function push(string $name, $value): void |
@@ -16,7 +16,6 @@ |
||
16 | 16 | use DateInterval; |
17 | 17 | use DateTime; |
18 | 18 | use DateTimeInterface; |
19 | -use Exception; |
|
20 | 19 | use Psr\SimpleCache\CacheInterface; |
21 | 20 | use think\Container; |
22 | 21 | use think\contract\CacheHandlerInterface; |
@@ -277,7 +277,7 @@ |
||
277 | 277 | |
278 | 278 | /** |
279 | 279 | * 删除文件夹 |
280 | - * @param $dirname |
|
280 | + * @param string $dirname |
|
281 | 281 | * @return bool |
282 | 282 | */ |
283 | 283 | private function rmdir($dirname) |
@@ -633,7 +633,7 @@ |
||
633 | 633 | /** |
634 | 634 | * 获取可能的建议 |
635 | 635 | * @access private |
636 | - * @param array $abbrevs |
|
636 | + * @param string[] $abbrevs |
|
637 | 637 | * @return string |
638 | 638 | */ |
639 | 639 | private function getAbbreviationSuggestions(array $abbrevs): string |
@@ -14,10 +14,16 @@ discard block |
||
14 | 14 | use InvalidArgumentException; |
15 | 15 | use LogicException; |
16 | 16 | use think\console\Command; |
17 | +use think\console\Input; |
|
18 | +use think\console\Output; |
|
17 | 19 | use think\console\command\Clear; |
18 | -use think\console\command\Help; |
|
19 | 20 | use think\console\command\Help as HelpCommand; |
20 | 21 | use think\console\command\Lists; |
22 | +use think\console\command\RouteList; |
|
23 | +use think\console\command\RunServer; |
|
24 | +use think\console\command\ServiceDiscover; |
|
25 | +use think\console\command\VendorPublish; |
|
26 | +use think\console\command\Version; |
|
21 | 27 | use think\console\command\make\Command as MakeCommand; |
22 | 28 | use think\console\command\make\Controller; |
23 | 29 | use think\console\command\make\Event; |
@@ -29,16 +35,9 @@ discard block |
||
29 | 35 | use think\console\command\make\Validate; |
30 | 36 | use think\console\command\optimize\Route; |
31 | 37 | use think\console\command\optimize\Schema; |
32 | -use think\console\command\RouteList; |
|
33 | -use think\console\command\RunServer; |
|
34 | -use think\console\command\ServiceDiscover; |
|
35 | -use think\console\command\VendorPublish; |
|
36 | -use think\console\command\Version; |
|
37 | -use think\console\Input; |
|
38 | 38 | use think\console\input\Argument as InputArgument; |
39 | 39 | use think\console\input\Definition as InputDefinition; |
40 | 40 | use think\console\input\Option as InputOption; |
41 | -use think\console\Output; |
|
42 | 41 | use think\console\output\driver\Buffer; |
43 | 42 | |
44 | 43 | /** |
@@ -282,7 +282,7 @@ |
||
282 | 282 | * @param string $name 名称 |
283 | 283 | * @param int $mode 类型 |
284 | 284 | * @param string $description 描述 |
285 | - * @param mixed $default 默认值 |
|
285 | + * @param string $default 默认值 |
|
286 | 286 | * @return Command |
287 | 287 | */ |
288 | 288 | public function addArgument(string $name, int $mode = null, string $description = '', $default = null) |
@@ -20,6 +20,9 @@ |
||
20 | 20 | { |
21 | 21 | protected $type; |
22 | 22 | |
23 | + /** |
|
24 | + * @return string |
|
25 | + */ |
|
23 | 26 | abstract protected function getStub(); |
24 | 27 | |
25 | 28 | protected function configure() |
@@ -13,8 +13,8 @@ |
||
13 | 13 | |
14 | 14 | use think\console\Command; |
15 | 15 | use think\console\Input; |
16 | -use think\console\input\Argument; |
|
17 | 16 | use think\console\Output; |
17 | +use think\console\input\Argument; |
|
18 | 18 | |
19 | 19 | abstract class Make extends Command |
20 | 20 | { |
@@ -12,9 +12,9 @@ |
||
12 | 12 | |
13 | 13 | use think\console\Command; |
14 | 14 | use think\console\Input; |
15 | +use think\console\Output; |
|
15 | 16 | use think\console\input\Argument; |
16 | 17 | use think\console\input\Option; |
17 | -use think\console\Output; |
|
18 | 18 | |
19 | 19 | class Schema extends Command |
20 | 20 | { |
@@ -12,10 +12,10 @@ |
||
12 | 12 | |
13 | 13 | use think\console\Command; |
14 | 14 | use think\console\Input; |
15 | -use think\console\input\Argument; |
|
16 | -use think\console\input\Option; |
|
17 | 15 | use think\console\Output; |
18 | 16 | use think\console\Table; |
17 | +use think\console\input\Argument; |
|
18 | +use think\console\input\Option; |
|
19 | 19 | use think\event\RouteLoaded; |
20 | 20 | |
21 | 21 | class RouteList extends Command |