Conditions | 4 |
Paths | 8 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
44 | 6 | private function flattenValue($value, array &$result): void |
|
45 | { |
||
46 | 6 | if (\is_scalar($value)) { |
|
47 | 6 | $result[] = $value; |
|
48 | } |
||
49 | |||
50 | 6 | if (\is_array($value)) { |
|
51 | 4 | $result = $this->arrayMergeOperation->execute($result, $this->execute($value)); |
|
52 | } |
||
53 | |||
54 | 6 | if (\is_object($value)) { |
|
55 | 2 | $result[] = (string)$value; |
|
56 | } |
||
59 |