| Conditions | 4 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 30 | public static function parse(NodeInterface $node, array $configs) |
||
| 31 | { |
||
| 32 | $current = self::initializeCurrentConfig($node); |
||
| 33 | foreach ($configs as $index => $config) { |
||
| 34 | if (!is_int($index) && $index !== $node->getName()) { |
||
| 35 | continue; |
||
| 36 | } |
||
| 37 | |||
| 38 | $config = $node->normalize($config); |
||
| 39 | $current = $node->merge($current, $config); |
||
| 40 | } |
||
| 41 | |||
| 42 | return $node->finalize($current); |
||
| 43 | } |
||
| 44 | |||
| 70 |