Conditions | 5 |
Paths | 6 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
49 | public static function getAlerts($type = '', $group = '') { |
||
50 | $alerts = isset($_SESSION['alerts']) ? array_unique($_SESSION['alerts']) : []; |
||
51 | foreach ($alerts as $i => $alert) { |
||
52 | if (!$alert->isType($type) || !$alert->isGroup($group)) { |
||
53 | unset($alerts[$i]); |
||
54 | } |
||
55 | } |
||
56 | return $alerts; |
||
57 | } |
||
75 |