| Conditions | 4 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 38 | private function buildArrayElementLists(NodeValueListInterface $source, ValueListInterface ...$valueLists): array |
||
| 39 | { |
||
| 40 | $elementLists = array_fill_keys($source->getIndexMap()->getInnerIndexes(), []); |
||
| 41 | foreach ($valueLists as $valueList) { |
||
| 42 | if (!$source->getIndexMap()->equals($valueList->getIndexMap())) { |
||
| 43 | throw new Exception\IndexMapMatchFailedException($valueList, $source); |
||
| 44 | } |
||
| 45 | foreach ($valueList->getValues() as $innerIndex => $value) { |
||
| 46 | $elementLists[$innerIndex][] = $value; |
||
| 47 | } |
||
| 48 | } |
||
| 49 | |||
| 50 | return $elementLists; |
||
| 51 | } |
||
| 53 |