Conditions | 4 |
Paths | 4 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
23 | public static function flattenObjectsWithSingleKeyScalars(array &$array) |
||
24 | { |
||
25 | if (1 === \count($array) && \is_scalar(\end($array))) { |
||
26 | $array = \array_pop($array); |
||
27 | } |
||
28 | |||
29 | if (\is_array($array)) { |
||
30 | self::loopScalarValues($array, 'flattenObjectsWithSingleKeyScalars'); |
||
31 | } |
||
32 | } |
||
33 | |||
47 |