| Conditions | 4 |
| Paths | 8 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function wrapMessages(string $messages, string $type): string |
||
| 27 | { |
||
| 28 | $type = ($type == 'error') ? 'danger' : $type; |
||
| 29 | $type = ($type == 'warning') ? 'secondary' : $type; |
||
| 30 | $type = ($type == 'info') ? 'primary' : $type; |
||
| 31 | |||
| 32 | return sprintf($this->getWrapper(), $type, $messages); |
||
| 33 | } |
||
| 35 |