Skip to content

Commit

Permalink
Update Show.php
Browse files Browse the repository at this point in the history
fix Undefined variable: upType
  • Loading branch information
WangNingkai authored Oct 31, 2019
1 parent 5f03135 commit edd0445
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Util/Show.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,12 @@ public static function liteBlock(

// format type
if ($type) {
$upType = strtoupper($type);
// add style
if ($style && $color->hasStyle($style)) {
$fmtType = sprintf('<%s>[%s]</%s> ', $style, $upType, $style);
} else {
$fmtType = sprintf('[%s]', $upType = strtoupper($type));
$fmtType = sprintf('[%s]', $upType);
}
}

Expand Down

0 comments on commit edd0445

Please sign in to comment.