| Conditions | 4 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | 5 | private function createKeys(array $array, string $prefix = ''): array |
|
| 33 | { |
||
| 34 | 5 | $keysWithValue = []; |
|
| 35 | |||
| 36 | 5 | foreach ($array as $key => $value) { |
|
| 37 | 5 | if (\is_array($value) && !empty($value)) { |
|
| 38 | 4 | $keysWithValue = $this->mergeOperation->execute($keysWithValue, $this->createKeys($value, $prefix.$key.'.')); |
|
| 39 | } else { |
||
| 40 | 5 | $keysWithValue[$prefix.$key] = $value; |
|
| 41 | } |
||
| 42 | } |
||
| 43 | |||
| 44 | 5 | return $keysWithValue; |
|
| 45 | } |
||
| 47 |