| Conditions | 3 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 20 | public function __call($method, $arguments) |
||
| 21 | { |
||
| 22 | $nodes = []; |
||
| 23 | $new_context = $this->context; |
||
| 24 | |||
| 25 | for ($i = 0, $l = $this->times; $i < $l; ++$i) { |
||
| 26 | $new_context = $this->context->$method(...$arguments); |
||
| 27 | $nodes = \array_merge($nodes, $new_context->array()); |
||
| 28 | } |
||
| 29 | |||
| 30 | if ($new_context !== $this->context) { |
||
| 31 | return new FluidContext($this->document, $this->handler, $nodes); |
||
| 32 | } |
||
| 33 | |||
| 34 | return $this->context; |
||
| 35 | } |
||
| 36 | } |
||
| 37 |