Showing 4 of 4 total issues
Method getIndicatorConfig
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getIndicatorConfig(): ?array { if (static::isProduction()) { return [ 'name' => 'Production',
Function getEnvironmentClass
has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring. Open
Open
public static function getEnvironmentClass(): string { static $class; if (!isset($class)) { if ($class = static::get('DRUPAL_ENVIRONMENT_CLASS')) {
- Read upRead up
Avoid too many return
statements within this method. Open
Open
return null;
Avoid too many return
statements within this method. Open
Open
return [ 'name' => 'Local', 'bg_color' => '#505050', 'fg_color' => '#ffffff', ];