Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function isEnabled(): bool |
||
33 | { |
||
34 | if (self::$isEnabled === null) { |
||
35 | self::$isEnabled = $this->config->hasKey(self::KEY_ENABLED) |
||
36 | ? (bool)$this->config->get(self::KEY_ENABLED) |
||
37 | : $this->config->getSetupGacela()->isFileCacheEnabled(); |
||
38 | } |
||
39 | |||
40 | return self::$isEnabled; |
||
41 | } |
||
43 |