Hal\Application\Formater\Details\Cli::getStyle PHP Method

getStyle() private method

Get style, according score
private getStyle ( string $key, double $value ) : string
$key string
$value double
return string
    private function getStyle($key, $value)
    {
        $score = $this->validator->validate($key, $value);
        switch ($score) {
            case Validator::GOOD:
                return 'fg=green';
            case Validator::WARNING:
                return 'bg=yellow;fg=black';
            case Validator::CRITICAL:
                return 'bg=red;fg=white';
        }
        return 'fg=white';
    }