| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | 62 | protected function getKeysOnly(array $array): array |
|
| 25 | { |
||
| 26 | 62 | $result = []; |
|
| 27 | |||
| 28 | 62 | foreach ($array as $key => $value) { |
|
| 29 | 62 | if (is_array($value)) { |
|
| 30 | 62 | $result[$key] = $this->getKeysOnly($value); |
|
| 31 | |||
| 32 | 62 | continue; |
|
| 33 | } |
||
| 34 | |||
| 35 | 62 | array_push($result, $key); |
|
| 36 | } |
||
| 37 | |||
| 38 | 62 | return $result; |
|
| 39 | } |
||
| 41 |