| Conditions | 4 |
| Paths | 6 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 74 | public function toArray() |
||
| 75 | { |
||
| 76 | $output = []; |
||
| 77 | |||
| 78 | if (is_array($this->tags)) { |
||
| 79 | $output = $this->tags; |
||
| 80 | } |
||
| 81 | |||
| 82 | $output = $this->processArray($output); |
||
| 83 | |||
| 84 | foreach ($this->fields as $field => $params) { |
||
| 85 | $output['fields'][$field] = count($params) ? $params : new \stdClass(); |
||
| 86 | } |
||
| 87 | |||
| 88 | return $output; |
||
| 89 | } |
||
| 90 | } |
||
| 91 |