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