| Conditions | 4 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public function resolve($data) |
||
| 34 | { |
||
| 35 | $resolved = $this->resolver->resolve($data); |
||
| 36 | foreach ($this->children as $key => $children) { |
||
| 37 | if($children instanceof ConfigTreeResolver) { |
||
| 38 | foreach ($resolved[$key] as $sub_key => $sub_data) { |
||
| 39 | $resolved[$key][$sub_key] = $children->resolve($sub_data); |
||
| 40 | } |
||
| 41 | } |
||
| 42 | else { |
||
| 43 | $resolved[$key] = $children->resolve($resolved[$key]); |
||
| 44 | } |
||
| 45 | } |
||
| 46 | return $resolved; |
||
| 47 | } |
||
| 49 |