| Conditions | 4 |
| Paths | 6 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | private function renderMessage(array $message) |
||
| 40 | { |
||
| 41 | if (isset($message[1])) { |
||
| 42 | unset($message[1]); |
||
| 43 | } |
||
| 44 | $alert = ''; |
||
| 45 | $num = count($message); |
||
| 46 | $x = 1; |
||
| 47 | foreach($message as $msg) |
||
| 48 | { |
||
| 49 | $alert .= $msg; |
||
| 50 | if($x < $num){$alert .= '<br />';} |
||
| 51 | $x ++; |
||
| 52 | } |
||
| 53 | return $alert; |
||
| 54 | } |
||
| 55 | } |