| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | public function isEnabledByDefault(string $module): bool |
||
| 47 | { |
||
| 48 | if ($this->enabledEnvironmentBasedBehavior()) { |
||
| 49 | $environment = PluginEnvironment::getPluginEnvironment(); |
||
| 50 | return $environment == PluginEnvironment::PLUGIN_ENVIRONMENT_PROD; |
||
| 51 | } |
||
| 52 | return parent::isEnabledByDefault($module); |
||
| 53 | } |
||
| 55 |