Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
54 | public function load($path, array $arguments = []) |
||
55 | { |
||
56 | if ($this->caches->containsKey($path) === false) { |
||
57 | $content = $this->loader->load($path, $arguments); |
||
58 | |||
59 | $value = new Pair($path, $content); |
||
60 | $this->caches->add($value); |
||
61 | } |
||
62 | |||
63 | return $this->caches->get($path); |
||
64 | } |
||
65 | |||
67 |