Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
36 | 137 | protected function convertIdInArrayKeys(array $data): array |
|
37 | { |
||
38 | 137 | foreach ($data as $key => $value) { |
|
39 | 137 | $newKey = $this->convertIdInString($key); |
|
40 | 137 | $data[$newKey] = $value; |
|
41 | 137 | if ($key !== $newKey) { |
|
42 | 53 | unset($data[$key]); |
|
43 | } |
||
44 | } |
||
45 | |||
46 | 137 | return $data; |
|
47 | } |
||
49 |