Conditions | 5 |
Paths | 5 |
Total Lines | 19 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
45 | protected function convert() |
||
46 | { |
||
47 | foreach ($this->raw as $row) { |
||
48 | $label = $row->getLabel(); |
||
49 | $this->labels[] = $label; |
||
50 | |||
51 | foreach ($row->getEvents() as $event => $value) { |
||
52 | if (!array_key_exists($event, $this->data)) { |
||
53 | if (array_key_exists($event, $this->params)) { |
||
54 | $this->data[$event] = $this->params[$event]; |
||
55 | } |
||
56 | |||
57 | $this->data[$event]['data'] = []; |
||
58 | } |
||
59 | |||
60 | $this->data[$event]['data'][] = $value; |
||
61 | } |
||
62 | } |
||
63 | } |
||
64 | |||
76 | } |