Conditions | 5 |
Paths | 5 |
Total Lines | 19 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | protected function convert() |
||
30 | { |
||
31 | foreach ($this->raw as $row) { |
||
32 | $label = $row->getLabel(); |
||
33 | $this->labels[] = $label; |
||
34 | |||
35 | foreach ($row->getEvents() as $event => $value) { |
||
36 | if (!array_key_exists($event, $this->data)) { |
||
37 | if (array_key_exists($event, $this->params)) { |
||
38 | $this->data[$event] = $this->params[$event]; |
||
39 | } |
||
40 | |||
41 | $this->data[$event]['data'] = []; |
||
42 | } |
||
43 | |||
44 | $this->data[$event]['data'][] = $value; |
||
45 | } |
||
46 | } |
||
47 | } |
||
48 | |||
59 | } |