Conditions | 3 |
Paths | 3 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
33 | 7 | private function reorderList(): void { |
|
34 | 7 | if (count(array_filter(array_keys($this->array), 'is_string')) > 0) { |
|
35 | //it's an associative array: do nothing |
||
36 | 1 | return; |
|
37 | } |
||
38 | |||
39 | 6 | if (!array_is_list($this->array)) { |
|
40 | 5 | $this->array = array_values($this->array); |
|
|
|||
41 | } |
||
44 |