| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2.0116 |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | 3 | public function load() |
|
| 38 | { |
||
| 39 | 3 | if (!$this->cache->isFresh()) { |
|
| 40 | 3 | $resource = new FileResource($this->getPath()); |
|
| 41 | 3 | $entries = $this->loader->load()->all(); |
|
| 42 | |||
| 43 | 3 | $this->cache->write(sprintf('<?php return %s;', var_export($entries, true)), [$resource]); |
|
| 44 | } else { |
||
| 45 | $entries = include $this->cache->getPath(); |
||
| 46 | } |
||
| 47 | |||
| 48 | 3 | return new Manifest($entries); |
|
| 49 | } |
||
| 50 | |||
| 59 |