Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function __call($name, $arguments) |
||
27 | { |
||
28 | $key = $this->getKey($name, $arguments); |
||
29 | |||
30 | if ($this->cache->hasItem($key)) { |
||
31 | $result = $this->cache->getItem($key); |
||
32 | } else { |
||
33 | $result = call_user_func_array([$this->parser, $name], $arguments); |
||
34 | $this->cache->setItem($key, $result); |
||
35 | } |
||
36 | |||
37 | return $result; |
||
38 | } |
||
40 |