| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 13 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 12 | 
| Changes | 0 | ||
| 1 | <?php | ||
| 78 | protected function getAllFields(array $array, string $path, array $fieldMap): array | ||
| 79 |     { | ||
| 80 |         foreach ($array as $key => $item) { | ||
| 81 |             if (is_array($item)) { | ||
| 82 | $fieldMap = $this->getAllFields($item, $path . '.' . $key, $fieldMap); | ||
| 83 | } | ||
| 84 |             else { | ||
| 85 | $keypath = (string) substr($path . '.' . $key, 1); | ||
| 86 | $fieldMap[$keypath] = $keypath; | ||
| 87 | } | ||
| 88 | } | ||
| 89 | |||
| 90 | return $fieldMap; | ||
| 91 | } | ||
| 92 | } |