| Total Complexity | 5 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | class MaterializeTemplate extends BaseTemplate implements TemplateInterface |
||
| 13 | { |
||
| 14 | protected $prefix = '<div>'; |
||
| 15 | protected $postfix = '</div>'; |
||
| 16 | protected $wrapper = '<div class="card-panel %s lighten-4 %s-text text-darken-4">%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 |
|
| 36 |