| Conditions | 3 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | 5 | public function get() |
|
| 47 | { |
||
| 48 | 5 | $custom_fields = []; |
|
| 49 | 5 | foreach ($this->custom_fields as $custom_field) { |
|
| 50 | 4 | $custom_fields[] = $custom_field->get(); |
|
| 51 | 5 | } |
|
| 52 | |||
| 53 | 5 | $fields = $this->getExistedValues($this->fieldList); |
|
| 54 | |||
| 55 | 5 | if (count($custom_fields)) { |
|
| 56 | 4 | $fields['custom_fields'] = $custom_fields; |
|
| 57 | 4 | } |
|
| 58 | |||
| 59 | 5 | return $fields; |
|
| 60 | } |
||
| 61 | |||
| 69 | } |