| Total Complexity | 5 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class TailwindTemplate extends BaseTemplate implements TemplateInterface |
||
| 13 | { |
||
| 14 | protected $prefix = ''; |
||
| 15 | protected $postfix = '<br />'; |
||
| 16 | protected $wrapper = '<div class="bg-%s-300 border border-%s-400 text-%s-800 px-4 py-3 mb-3 rounded relative shadow" 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 |
|
| 36 |