Skip to content

Commit d08a0a7

Browse files
committed
update some for Show::liteBlock
1 parent a69725c commit d08a0a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Util/Show.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@ public static function liteBlock(
111111
$text = \implode(\PHP_EOL, $messages);
112112
$color = static::getStyle();
113113

114-
// add type
114+
// format type
115115
if ($type) {
116-
$fmtType = \sprintf('[%s]', $upType = \strtoupper($type));
117-
118116
// add style
119117
if ($style && $color->hasStyle($style)) {
120118
$fmtType = \sprintf('<%s>[%s]</%s> ', $style, $upType, $style);
119+
} else {
120+
$fmtType = \sprintf('[%s]', $upType = \strtoupper($type));
121121
}
122122
}
123123

0 commit comments

Comments
 (0)