Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | protected function bootstrapBadge(BadgeInterface $badge): string { |
||
34 | |||
35 | $attributes = []; |
||
36 | |||
37 | $attributes["class"] = ["badge"]; |
||
38 | $attributes["class"][] = BadgeRenderer::renderType($badge); |
||
39 | $attributes["class"][] = 4 === $this->getVersion() ? BadgeRenderer::renderPill($badge) : null; |
||
40 | |||
41 | $innerHTML = BadgeRenderer::renderContent($badge); |
||
42 | |||
43 | return static::coreHTMLElement("span", $innerHTML, $attributes); |
||
44 | } |
||
45 | } |
||
46 |