Skip to content

Commit 2ad31f1

Browse files
authored
Merge pull request #15 from WangNingkai/master
Update Show.php
2 parents 5f03135 + edd0445 commit 2ad31f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Util/Show.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,12 @@ public static function liteBlock(
135135

136136
// format type
137137
if ($type) {
138+
$upType = strtoupper($type);
138139
// add style
139140
if ($style && $color->hasStyle($style)) {
140141
$fmtType = sprintf('<%s>[%s]</%s> ', $style, $upType, $style);
141142
} else {
142-
$fmtType = sprintf('[%s]', $upType = strtoupper($type));
143+
$fmtType = sprintf('[%s]', $upType);
143144
}
144145
}
145146

0 commit comments

Comments
 (0)