| Conditions | 6 |
| Paths | 12 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 24 | public function push(array &$data): void |
||
| 25 | { |
||
| 26 | parent::push($data); |
||
| 27 | foreach ($this->indexedData->getIndexes() as $index) { |
||
| 28 | try { |
||
| 29 | $this->indexedData->addItem($index, $data); |
||
| 30 | } catch (\Throwable) { |
||
| 31 | } |
||
| 32 | } |
||
| 33 | |||
| 34 | // Let's force placeholders for every sub loaded |
||
| 35 | foreach ($this->nodes as $name => $node) { |
||
| 36 | if ($node instanceof ParentMergeNode) { |
||
| 37 | continue; |
||
| 38 | } |
||
| 39 | $data[$name] = $node instanceof ArrayNode ? [] : null; |
||
| 40 | } |
||
| 43 |