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