Skip to content

Commit

Permalink
Merge pull request #15 from WangNingkai/master
Browse files Browse the repository at this point in the history
Update Show.php
  • Loading branch information
inhere authored Oct 31, 2019
2 parents 5f03135 + edd0445 commit 2ad31f1
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 2ad31f1

Please sign in to comment.