Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function createArray(NodeValueListInterface $source, ValueListInterface ...$valueLists): ValueListInterface |
||
24 | { |
||
25 | $createArrayElement = function (array $elements): ValueInterface { |
||
26 | return new LiteralArrayValue(...$elements); |
||
27 | }; |
||
28 | |||
29 | return new ValueList( |
||
30 | $source->getIndexMap(), |
||
31 | ...array_map( |
||
32 | $createArrayElement, |
||
33 | $this->buildArrayElementLists($source, ...$valueLists) |
||
34 | ) |
||
53 |