Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
32 | 51 | public function isEnabled(): bool |
|
33 | { |
||
34 | 51 | if (self::$isEnabled === null) { |
|
35 | 14 | self::$isEnabled = $this->config->hasKey(self::KEY_ENABLED) |
|
36 | 2 | ? (bool)$this->config->get(self::KEY_ENABLED) |
|
37 | 12 | : $this->config->getSetupGacela()->isProfilerEnabled(); |
|
38 | } |
||
39 | |||
40 | 51 | return self::$isEnabled; |
|
1 ignored issue
–
show
|
|||
41 | } |
||
43 |