From 10082cf13dfe405f8943cd2dcc411a7c7b0a7284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 22 Feb 2021 11:42:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Console/DefaultCommand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Console/DefaultCommand.php b/Console/DefaultCommand.php index f87aff40..33e214ae 100644 --- a/Console/DefaultCommand.php +++ b/Console/DefaultCommand.php @@ -29,15 +29,15 @@ class DefaultCommand extends Command foreach ($param as $key => $val) { $split = explode(':', $key); if (empty($last) && isset($split[0])) { - $lists[] = str_pad("\033[32;40;1;1m" . $split[0] . " \033[0m", 40, ' ', STR_PAD_RIGHT); + $lists[] = "\033[32;40;1;1m" . $split[0] . " \033[0m\t"; } else if (isset($split[0]) && $last != $split[0]) { - $lists[] = str_pad("\033[32;40;1;1m" . $split[0] . " \033[0m", 40, ' ', STR_PAD_RIGHT); + $lists[] = "\033[32;40;1;1m" . $split[0] . " \033[0m\t"; } $last = $split[0] ?? ''; list($method, $ts) = $val; - $lists[] = str_pad("\033[32;40;1;1m " . $key . " \033[0m", 40, ' ', STR_PAD_RIGHT) . $method; + $lists[] = "\033[32;40;1;1m " . $key . " \033[0m\t" . $method; } return implode("\v", $lists); }