1 | <?php |
||
12 | class LogFormatter |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * @var array for future reference |
||
17 | */ |
||
18 | private static $icons = [ |
||
|
|||
19 | 'DEBUG' => 'info-cirled', |
||
20 | 'INFO' => 'help-circled', |
||
21 | 'NOTICE' => 'help-plus-circled', |
||
22 | 'WARNING' => 'info-circled', |
||
23 | 'ERROR' => 'cancel-circled', |
||
24 | 'CRITICAL' => 'cancel-circled', |
||
25 | 'ALERT' => 'help-circled', |
||
26 | 'EMERGENCY' => 'cancel-circled' |
||
27 | ]; |
||
28 | |||
29 | /** |
||
30 | * Recursive method, will call itself if a sub element is an array |
||
31 | * @param array $data |
||
32 | * @param bool $first start with an opening bracket? if true, skip (counterintuitive, but naming) |
||
33 | * @return string formatted <ul><li> of the array; |
||
34 | */ |
||
35 | public static function entryToUl($data, $first = true) |
||
59 | |||
60 | } |
This check marks private properties in classes that are never used. Those properties can be removed.