DatabaseConnectorType   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 2
c 1
b 0
f 0
dl 0
loc 5
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCalculatedAnswer() 0 3 2
1
<?php
2
3
namespace Sunnysideup\HealthCheckProvider\Checks\Database;
4
5
use SilverStripe\Core\Environment;
6
use Sunnysideup\HealthCheckProvider\Checks\HealthCheckItemRunner;
7
8
class DatabaseConnectorType extends HealthCheckItemRunner
9
{
10
    public function getCalculatedAnswer(): string
11
    {
12
        return Environment::getEnv('SS_DATABASE_CLASS') ?: 'MySQLDatabase';
13
    }
14
}
15