You are here

public function SiteAuditCheckAbstract::getScoreDrushLevel in Site Audit 8.2

Same name and namespace in other branches
  1. 7 Check/Abstract.php \SiteAuditCheckAbstract::getScoreDrushLevel()

Get the Drush message level associated with a score.

Return value

string Converts the score (integer) to Drush levels.

File

Check/Abstract.php, line 152
Contains \SiteAudit\Check\Abstract.

Class

SiteAuditCheckAbstract
Class SiteAuditCheckAbstract.

Code

public function getScoreDrushLevel() {
  switch ($this->score) {
    case SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_PASS:
      return 'success';
    case SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_WARN:
      return 'warning';
    case SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_INFO:
      return 'notice';
    default:
      return 'error';
  }
}