Total Complexity | 4 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class HalfmoonTemplate extends BaseTemplate implements TemplateInterface |
||
13 | { |
||
14 | protected $prefix = ''; |
||
15 | protected $postfix = '<br />'; |
||
16 | protected $wrapper = '<div class="alert alert-%s" role="alert">%s</div>'; |
||
17 | |||
18 | /** |
||
19 | * Override base function to suite Bootstrap 3 alert naming. |
||
20 | * |
||
21 | * @param string $messages - message text |
||
22 | * @param string $type - message type: success, info, warning, error |
||
23 | * |
||
24 | * @return string |
||
25 | */ |
||
26 | 3 | public function wrapMessages(string $messages, string $type): string |
|
35 |