| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | public function __call($name, $arguments) |
||
| 41 | { |
||
| 42 | $key = $this->getKey($name, $arguments); |
||
| 43 | |||
| 44 | if ($this->cache->hasItem($key)) { |
||
| 45 | $result = $this->cache->getItem($key); |
||
| 46 | } else { |
||
| 47 | $result = call_user_func_array([$this->parser, $name], $arguments); |
||
| 48 | $this->cache->setItem($key, $result); |
||
| 49 | } |
||
| 50 | |||
| 51 | return $result; |
||
| 52 | } |
||
| 54 |