Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
48 | final protected function bootstrapSimpleTag($name, $content) { |
||
49 | |||
50 | // Initialize the template. |
||
51 | $template = "<" . $name . ">%innerHTML%</" . $name . ">"; |
||
52 | |||
53 | // Initialize the parameters. |
||
54 | $innerHTML = null !== $content ? $content : ""; |
||
55 | |||
56 | // Return the HTML. |
||
57 | return StringUtility::replace($template, ["%innerHTML%"], [$innerHTML]); |
||
58 | } |
||
59 | |||
61 |