| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function load(): array |
||
| 22 | { |
||
| 23 | if (is_file($this->cachedConfigFile)) { |
||
| 24 | return require $this->cachedConfigFile; |
||
| 25 | } |
||
| 26 | |||
| 27 | $config = $this->configLoader->load(); |
||
| 28 | |||
| 29 | file_put_contents($this->cachedConfigFile, '<?php return ' . var_export($config, true) . ';'); |
||
| 30 | |||
| 31 | return $config; |
||
| 32 | } |
||
| 33 | } |
||
| 34 |