Skip to content

Commit edd0445

Browse files
authored
Update Show.php
fix Undefined variable: upType
1 parent 5f03135 commit edd0445

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)