| Conditions | 3 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | 11 | public function get() |
|
| 30 | { |
||
| 31 | 11 | $custom_fields = []; |
|
| 32 | 11 | foreach ($this->custom_fields as $custom_field) { |
|
| 33 | 8 | $custom_fields[] = $custom_field->get(); |
|
| 34 | } |
||
| 35 | |||
| 36 | 11 | $fields = $this->getExistedValues($this->fieldList); |
|
| 37 | |||
| 38 | 11 | if (count($custom_fields)) { |
|
| 39 | 8 | $fields['custom_fields'] = $custom_fields; |
|
| 40 | } |
||
| 41 | |||
| 42 | 11 | return $fields; |
|
| 43 | } |
||
| 44 | } |