diff --git a/app/Console/Attach/Gitlab/ProjectInit.php b/app/Console/Attach/Gitlab/ProjectInit.php index 9cb562f..45352ea 100644 --- a/app/Console/Attach/Gitlab/ProjectInit.php +++ b/app/Console/Attach/Gitlab/ProjectInit.php @@ -13,7 +13,7 @@ */ class ProjectInit extends Command { - protected static $name = 'pinit'; + protected static string $name = 'pinit'; protected function configure(): void { diff --git a/app/Console/Command/CheatCommand.php b/app/Console/Command/CheatCommand.php index 368f858..d3d3007 100644 --- a/app/Console/Command/CheatCommand.php +++ b/app/Console/Command/CheatCommand.php @@ -38,9 +38,9 @@ class CheatCommand extends Command { public const CHT_HOST = 'https://cht.sh/'; - protected static $name = 'cheat'; + protected static string $name = 'cheat'; - protected static $desc = 'Query cheat for development'; + protected static string $desc = 'Query cheat for development'; /** * @return string[] diff --git a/app/Console/Command/DemoCommand.php b/app/Console/Command/DemoCommand.php index da87cf1..fe84de4 100644 --- a/app/Console/Command/DemoCommand.php +++ b/app/Console/Command/DemoCommand.php @@ -18,9 +18,9 @@ */ class DemoCommand extends Command { - protected static $name = 'demo1'; + protected static string $name = 'demo1'; - protected static $desc = 'a test command'; + protected static string $desc = 'a test command'; public static function isEnabled(): bool { diff --git a/app/Console/Command/DocCommand.php b/app/Console/Command/DocCommand.php index a008ce9..9713b68 100644 --- a/app/Console/Command/DocCommand.php +++ b/app/Console/Command/DocCommand.php @@ -34,9 +34,9 @@ */ class DocCommand extends Command { - protected static $name = 'doc'; + protected static string $name = 'doc'; - protected static $desc = 'Useful documents for how to use git,tmux and more tool'; + protected static string $desc = 'Useful documents for how to use git,tmux and more tool'; /** * @var string @@ -115,7 +115,7 @@ private function prepareManDoc(): Document * @param Input $input * @param Output $output */ - protected function execute(Input $input, Output $output) + protected function execute(Input $input, Output $output): void { $man = $this->prepareManDoc(); if ($errPaths = $man->getErrorPaths()) { diff --git a/app/Console/Command/EnvCommand.php b/app/Console/Command/EnvCommand.php index 187b243..a141b54 100644 --- a/app/Console/Command/EnvCommand.php +++ b/app/Console/Command/EnvCommand.php @@ -20,9 +20,9 @@ */ class EnvCommand extends Command { - protected static $name = 'env'; + protected static string $name = 'env'; - protected static $desc = 'a test command'; + protected static string $desc = 'a test command'; /** * print system ENV information diff --git a/app/Console/Command/ExprCommand.php b/app/Console/Command/ExprCommand.php index c879407..4768563 100644 --- a/app/Console/Command/ExprCommand.php +++ b/app/Console/Command/ExprCommand.php @@ -43,9 +43,9 @@ */ class ExprCommand extends Command { - protected static $name = 'expr'; + protected static string $name = 'expr'; - protected static $desc = 'Use for expression calculation'; + protected static string $desc = 'Use for expression calculation'; public const RESULT_VAR = 'ret'; diff --git a/app/Console/Command/FindCommand.php b/app/Console/Command/FindCommand.php index 2a35fd8..db4d1de 100644 --- a/app/Console/Command/FindCommand.php +++ b/app/Console/Command/FindCommand.php @@ -21,9 +21,9 @@ */ class FindCommand extends Command { - protected static $name = 'find'; + protected static string $name = 'find'; - protected static $desc = 'find file name, contents by grep,find command'; + protected static string $desc = 'find file name, contents by grep,find command'; public static function aliases(): array { diff --git a/app/Console/Command/InitCommand.php b/app/Console/Command/InitCommand.php index 6744291..5172dd1 100644 --- a/app/Console/Command/InitCommand.php +++ b/app/Console/Command/InitCommand.php @@ -21,9 +21,9 @@ */ class InitCommand extends Command { - protected static $name = 'init'; + protected static string $name = 'init'; - protected static $desc = 'initialize kite on the system'; + protected static string $desc = 'initialize kite on the system'; /** * @options diff --git a/app/Console/Command/Json5Command.php b/app/Console/Command/Json5Command.php index 5e80c9e..73fe461 100644 --- a/app/Console/Command/Json5Command.php +++ b/app/Console/Command/Json5Command.php @@ -27,9 +27,9 @@ */ class Json5Command extends Command { - protected static $name = 'json5'; + protected static string $name = 'json5'; - protected static $desc = 'read and convert json5 file to json format'; + protected static string $desc = 'read and convert json5 file to json format'; public static function aliases(): array { diff --git a/app/Console/Command/MarkdownCommand.php b/app/Console/Command/MarkdownCommand.php index 8f494fa..b569c04 100644 --- a/app/Console/Command/MarkdownCommand.php +++ b/app/Console/Command/MarkdownCommand.php @@ -22,12 +22,12 @@ class MarkdownCommand extends Command { /** @var string */ - protected static $name = 'markdown'; + protected static string $name = 'markdown'; /** * @var string */ - protected static $desc = 'render markdown file on terminal'; + protected static string $desc = 'render markdown file on terminal'; /** * @return string[] diff --git a/app/Console/Command/RunCommand.php b/app/Console/Command/RunCommand.php index d8ec258..7c9f2c3 100644 --- a/app/Console/Command/RunCommand.php +++ b/app/Console/Command/RunCommand.php @@ -24,9 +24,9 @@ */ class RunCommand extends Command { - protected static $name = 'run'; + protected static string $name = 'run'; - protected static $desc = 'run an script command or script file or kite plugin'; + protected static string $desc = 'run an script command or script file or kite plugin'; /** * @var ScriptRunner diff --git a/app/Console/Command/SearchCommand.php b/app/Console/Command/SearchCommand.php index a90a5fb..45e646c 100644 --- a/app/Console/Command/SearchCommand.php +++ b/app/Console/Command/SearchCommand.php @@ -13,9 +13,9 @@ */ class SearchCommand extends Command { - protected static $name = 'search'; + protected static string $name = 'search'; - protected static $desc = 'Search by web search engine, such as google, baidu, bing'; + protected static string $desc = 'Search by web search engine, such as google, baidu, bing'; private array $engines = [ 'google' => 'https://www.google.com/search?q=', diff --git a/app/Console/Controller/ConvertController.php b/app/Console/Controller/ConvertController.php index cc9df21..e0e8c19 100644 --- a/app/Console/Controller/ConvertController.php +++ b/app/Console/Controller/ConvertController.php @@ -44,9 +44,9 @@ */ class ConvertController extends Controller { - protected static $name = 'convert'; + protected static string $name = 'convert'; - protected static $desc = 'Some useful convert development tool commands'; + protected static string $desc = 'Some useful convert development tool commands'; /** * @return string[] diff --git a/app/Console/Controller/CronTabController.php b/app/Console/Controller/CronTabController.php index a3622d3..1833377 100644 --- a/app/Console/Controller/CronTabController.php +++ b/app/Console/Controller/CronTabController.php @@ -22,9 +22,9 @@ */ class CronTabController extends Controller { - protected static $name = 'crontab'; + protected static string $name = 'crontab'; - protected static $desc = 'parse or convert crontab expression'; + protected static string $desc = 'parse or convert crontab expression'; public static function aliases(): array { diff --git a/app/Console/Controller/DbController.php b/app/Console/Controller/DbController.php index 1e30a82..985c3c0 100644 --- a/app/Console/Controller/DbController.php +++ b/app/Console/Controller/DbController.php @@ -24,9 +24,9 @@ */ class DbController extends Controller { - protected static $name = 'db'; + protected static string $name = 'db'; - protected static $desc = 'Database development tool commands'; + protected static string $desc = 'Database development tool commands'; /** * convert an mysql table create SQL to markdown table diff --git a/app/Console/Controller/DemoController.php b/app/Console/Controller/DemoController.php index d667fe3..926a59d 100644 --- a/app/Console/Controller/DemoController.php +++ b/app/Console/Controller/DemoController.php @@ -18,9 +18,9 @@ */ class DemoController extends Controller { - protected static $name = 'demo'; + protected static string $name = 'demo'; - protected static $desc = 'Some useful development tool commands'; + protected static string $desc = 'Some useful development tool commands'; public static function isEnabled(): bool { diff --git a/app/Console/Controller/FsController.php b/app/Console/Controller/FsController.php index bb974db..62f25da 100644 --- a/app/Console/Controller/FsController.php +++ b/app/Console/Controller/FsController.php @@ -25,9 +25,9 @@ */ class FsController extends Controller { - protected static $name = 'fs'; + protected static string $name = 'fs'; - protected static $desc = 'Some useful development tool commands'; + protected static string $desc = 'Some useful development tool commands'; public static function aliases(): array { diff --git a/app/Console/Controller/GenerateController.php b/app/Console/Controller/GenerateController.php index b9d853b..2a03474 100644 --- a/app/Console/Controller/GenerateController.php +++ b/app/Console/Controller/GenerateController.php @@ -30,9 +30,9 @@ */ class GenerateController extends Controller { - protected static $name = 'gen'; + protected static string $name = 'gen'; - protected static $desc = 'quick generate new class or file from template'; + protected static string $desc = 'quick generate new class or file from template'; public static function aliases(): array { diff --git a/app/Console/Controller/GitController.php b/app/Console/Controller/GitController.php index 1a4c518..0d6feba 100644 --- a/app/Console/Controller/GitController.php +++ b/app/Console/Controller/GitController.php @@ -49,9 +49,9 @@ */ class GitController extends Controller { - protected static $name = 'git'; + protected static string $name = 'git'; - protected static $desc = 'Provide useful tool commands for quick use git'; + protected static string $desc = 'Provide useful tool commands for quick use git'; /** * @var DataObject diff --git a/app/Console/Controller/GitFlowController.php b/app/Console/Controller/GitFlowController.php index 0e115ca..1e6e422 100644 --- a/app/Console/Controller/GitFlowController.php +++ b/app/Console/Controller/GitFlowController.php @@ -24,9 +24,9 @@ */ class GitFlowController extends Controller { - protected static $name = 'gitflow'; + protected static string $name = 'gitflow'; - protected static $desc = 'Some useful tool commands for git flow development'; + protected static string $desc = 'Some useful tool commands for git flow development'; /** * @var array diff --git a/app/Console/Controller/GitHubController.php b/app/Console/Controller/GitHubController.php index 1a3d48f..9320651 100644 --- a/app/Console/Controller/GitHubController.php +++ b/app/Console/Controller/GitHubController.php @@ -28,9 +28,9 @@ */ class GitHubController extends Controller { - protected static $name = 'github'; + protected static string $name = 'github'; - protected static $desc = 'Some useful development tool commands'; + protected static string $desc = 'Some useful development tool commands'; /** * @var array diff --git a/app/Console/Controller/GitLabController.php b/app/Console/Controller/GitLabController.php index fbaf2e7..f26f7ce 100644 --- a/app/Console/Controller/GitLabController.php +++ b/app/Console/Controller/GitLabController.php @@ -43,9 +43,9 @@ */ class GitLabController extends Controller { - protected static $name = 'gitlab'; + protected static string $name = 'gitlab'; - protected static $desc = 'Some useful tool commands for gitlab development'; + protected static string $desc = 'Some useful tool commands for gitlab development'; /** * @var array diff --git a/app/Console/Controller/GitSubtreeController.php b/app/Console/Controller/GitSubtreeController.php index 05674fd..e021035 100644 --- a/app/Console/Controller/GitSubtreeController.php +++ b/app/Console/Controller/GitSubtreeController.php @@ -36,8 +36,8 @@ class GitSubtreeController extends Controller public const TYPE_SSL = 'git@github.com:'; public const TYPE_HTTPS = 'https://github.com/'; - protected static $name = 'git-sub'; - protected static $desc = 'quick the git subtree tool'; + protected static string $name = 'git-sub'; + protected static string $desc = 'quick the git subtree tool'; /** * @var string diff --git a/app/Console/Controller/GoController.php b/app/Console/Controller/GoController.php index 02346ea..858410a 100644 --- a/app/Console/Controller/GoController.php +++ b/app/Console/Controller/GoController.php @@ -24,9 +24,9 @@ */ class GoController extends Controller { - protected static $name = 'go'; + protected static string $name = 'go'; - protected static $desc = 'Some useful tool commands for go development'; + protected static string $desc = 'Some useful tool commands for go development'; protected static function commandAliases(): array { diff --git a/app/Console/Controller/JavaController.php b/app/Console/Controller/JavaController.php index f00c755..be7ca60 100644 --- a/app/Console/Controller/JavaController.php +++ b/app/Console/Controller/JavaController.php @@ -24,9 +24,9 @@ */ class JavaController extends Controller { - protected static $name = 'java'; + protected static string $name = 'java'; - protected static $desc = 'Some useful tool commands for java development'; + protected static string $desc = 'Some useful tool commands for java development'; protected static function commandAliases(): array { diff --git a/app/Console/Controller/JsonController.php b/app/Console/Controller/JsonController.php index 454b577..5069db1 100644 --- a/app/Console/Controller/JsonController.php +++ b/app/Console/Controller/JsonController.php @@ -41,9 +41,9 @@ */ class JsonController extends Controller { - protected static $name = 'json'; + protected static string $name = 'json'; - protected static $desc = 'Some useful json development tool commands'; + protected static string $desc = 'Some useful json development tool commands'; /** * @var string diff --git a/app/Console/Controller/JumpController.php b/app/Console/Controller/JumpController.php index 2b35eea..275cc96 100644 --- a/app/Console/Controller/JumpController.php +++ b/app/Console/Controller/JumpController.php @@ -30,9 +30,9 @@ */ class JumpController extends Controller { - protected static $name = 'jump'; + protected static string $name = 'jump'; - protected static $desc = 'Jump helps you navigate faster by your history.'; + protected static string $desc = 'Jump helps you navigate faster by your history.'; /** * @return string[] diff --git a/app/Console/Controller/K8sController.php b/app/Console/Controller/K8sController.php index d966290..170a565 100644 --- a/app/Console/Controller/K8sController.php +++ b/app/Console/Controller/K8sController.php @@ -23,9 +23,9 @@ */ class K8sController extends Controller { - protected static $name = 'k8s'; + protected static string $name = 'k8s'; - protected static $desc = 'Kubernetes development tool commands'; + protected static string $desc = 'Kubernetes development tool commands'; /** * generate apply template contents for k8s diff --git a/app/Console/Controller/PhpController.php b/app/Console/Controller/PhpController.php index c31c200..c72284a 100644 --- a/app/Console/Controller/PhpController.php +++ b/app/Console/Controller/PhpController.php @@ -51,9 +51,9 @@ */ class PhpController extends Controller { - protected static $name = 'php'; + protected static string $name = 'php'; - protected static $desc = 'Some useful tool commands for php development'; + protected static string $desc = 'Some useful tool commands for php development'; protected static function commandAliases(): array { diff --git a/app/Console/Controller/PluginController.php b/app/Console/Controller/PluginController.php index 93b1322..f668ad8 100644 --- a/app/Console/Controller/PluginController.php +++ b/app/Console/Controller/PluginController.php @@ -22,9 +22,9 @@ */ class PluginController extends Controller { - protected static $name = 'plugin'; + protected static string $name = 'plugin'; - protected static $desc = 'kite plugins manage tools'; + protected static string $desc = 'kite plugins manage tools'; /** * @return string[] diff --git a/app/Console/Controller/ProjectController.php b/app/Console/Controller/ProjectController.php index 346dce9..645625a 100644 --- a/app/Console/Controller/ProjectController.php +++ b/app/Console/Controller/ProjectController.php @@ -12,9 +12,9 @@ */ class ProjectController extends Controller { - protected static $name = 'new'; + protected static string $name = 'new'; - protected static $desc = 'quick create new project or package or library tool commands'; + protected static string $desc = 'quick create new project or package or library tool commands'; public static function aliases(): array { diff --git a/app/Console/Controller/SelfController.php b/app/Console/Controller/SelfController.php index c416afb..11d74ee 100644 --- a/app/Console/Controller/SelfController.php +++ b/app/Console/Controller/SelfController.php @@ -34,9 +34,9 @@ */ class SelfController extends Controller { - protected static $name = 'self'; + protected static string $name = 'self'; - protected static $desc = 'Operate and manage kite self commands'; + protected static string $desc = 'Operate and manage kite self commands'; /** * @var string diff --git a/app/Console/Controller/SnippetController.php b/app/Console/Controller/SnippetController.php index b7ceac2..04dd1c5 100644 --- a/app/Console/Controller/SnippetController.php +++ b/app/Console/Controller/SnippetController.php @@ -18,9 +18,9 @@ */ class SnippetController extends Controller { - protected static $name = 'snippet'; + protected static string $name = 'snippet'; - protected static $desc = 'Some useful development tool commands'; + protected static string $desc = 'Some useful development tool commands'; /** * @return string[] diff --git a/app/Console/Controller/SqlController.php b/app/Console/Controller/SqlController.php index 0ebea57..784ddbe 100644 --- a/app/Console/Controller/SqlController.php +++ b/app/Console/Controller/SqlController.php @@ -22,9 +22,9 @@ */ class SqlController extends Controller { - protected static $name = 'sql'; + protected static string $name = 'sql'; - protected static $desc = 'Some useful development tool commands for SQL'; + protected static string $desc = 'Some useful development tool commands for SQL'; /** * @return string[][] diff --git a/app/Console/Controller/StringController.php b/app/Console/Controller/StringController.php index e3d1359..e9870de 100644 --- a/app/Console/Controller/StringController.php +++ b/app/Console/Controller/StringController.php @@ -48,9 +48,9 @@ */ class StringController extends Controller { - protected static $name = 'string'; + protected static string $name = 'string'; - protected static $desc = 'Some useful development tool commands'; + protected static string $desc = 'Some useful development tool commands'; /** * @var string diff --git a/app/Console/Controller/SysController.php b/app/Console/Controller/SysController.php index e91a489..68e58f1 100644 --- a/app/Console/Controller/SysController.php +++ b/app/Console/Controller/SysController.php @@ -18,9 +18,9 @@ */ class SysController extends Controller { - protected static $name = 'sys'; + protected static string $name = 'sys'; - protected static $desc = 'Some useful tool commands for system'; + protected static string $desc = 'Some useful tool commands for system'; /** * run a php built-in server for development(is alias of the command 'server:dev') diff --git a/app/Console/Controller/UtilController.php b/app/Console/Controller/UtilController.php index 72842b8..e3b7a79 100644 --- a/app/Console/Controller/UtilController.php +++ b/app/Console/Controller/UtilController.php @@ -47,9 +47,9 @@ class UtilController extends Controller 'GoLand', ]; - protected static $name = 'util'; + protected static string $name = 'util'; - protected static $desc = 'Some useful development tool commands'; + protected static string $desc = 'Some useful development tool commands'; protected static function commandAliases(): array { diff --git a/resource/snippets/DemoGroup.php b/resource/snippets/DemoGroup.php index 16edf98..1126ef1 100644 --- a/resource/snippets/DemoGroup.php +++ b/resource/snippets/DemoGroup.php @@ -18,9 +18,9 @@ */ class DemoGroup extends Controller { - protected static $name = 'demo'; + protected static string $name = 'demo'; - protected static $description = 'Some useful development tool commands'; + protected static string $description = 'Some useful development tool commands'; /** * run a php built-in server for development(is alias of the command 'server:dev')