Skip to content

Commit 62e7f02

Browse files
committed
Remove duplicated code and tweak CLI banner layout
1 parent a218b90 commit 62e7f02

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

console/create.php

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,11 @@ protected function interact(InputInterface $input, OutputInterface $output)
129129
protected function display_banner(): void
130130
{
131131
$title_lines = [
132-
[' _____ __ __ __ ', 'cyan'],
133-
[' / ___// /_____ / /__ / /_____ ____ ', 'cyan'],
134-
[' \__ \/ //_/ _ \/ / _ \/ __/ __ \/ __ \ ', 'blue'],
135-
[' ___/ / ,< / __/ / __/ /_/ /_/ / / / / ', 'blue'],
136-
['/____/_/|_|\___/_/\___/\__/\____/_/ /_/ ', 'magenta'],
137-
];
138-
139-
$sub_lines = [
132+
[' _____ __ __ __ ', 'cyan'],
133+
[' / ___// /_____ / /__ / /_____ ____ ', 'cyan'],
134+
[' \__ \/ //_/ _ \/ / _ \/ __/ __ \/ __ \ ', 'blue'],
135+
[' ___/ / ,< / __/ / __/ /_/ /_/ / / / / ', 'blue'],
136+
[' /____/_/|_|\___/_/\___/\__/\____/_/ /_/ ', 'magenta'],
140137
[' ______ __ _ ', 'magenta'],
141138
[' / ____/ __/ /____ ____ _____(_)___ ____ ', 'red'],
142139
[' / __/ | |/_/ __/ _ \/ __ \/ ___/ / __ \/ __ \ ', 'red'],
@@ -152,10 +149,6 @@ protected function display_banner(): void
152149
{
153150
$this->output->writeln("<fg=$color;options=bold>$text</>");
154151
}
155-
foreach ($sub_lines as [$text, $color])
156-
{
157-
$this->output->writeln("<fg=$color;options=bold>$text</>");
158-
}
159152
$this->output->writeln('');
160153
$this->output->writeln("<fg=cyan> $desc </>");
161154
$this->output->writeln("<fg=white>$line</>");

0 commit comments

Comments
 (0)