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 |
||
38 | 137 | protected function convertIdInArrayKeys(array $data): array |
|
39 | { |
||
40 | 137 | foreach ($data as $key => $value) { |
|
41 | 137 | $newKey = $this->convertIdInString($key); |
|
42 | 137 | $data[$newKey] = $value; |
|
43 | 137 | if ($key !== $newKey) { |
|
44 | 53 | unset($data[$key]); |
|
45 | } |
||
46 | } |
||
47 | |||
48 | 137 | return $data; |
|
49 | } |
||
51 |