Conditions | 5 |
Paths | 16 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 5 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | 3 | public function wrapMessages(string $messages, string $type): string |
|
27 | { |
||
28 | 3 | $type = ($type == 'success') ? 'green' : $type; |
|
29 | 3 | $type = ($type == 'info') ? 'blue' : $type; |
|
30 | 3 | $type = ($type == 'warning') ? 'yellow' : $type; |
|
31 | 3 | $type = ($type == 'error') ? 'red' : $type; |
|
32 | |||
33 | 3 | return sprintf($this->getWrapper(), $type, $type, $type, $messages); |
|
34 | } |
||
36 |