You are here

public function SiteAuditCheckBestPracticesFast404::calculateScore in Site Audit 7

Same name and namespace in other branches
  1. 8.2 Check/BestPractices/Fast404.php \SiteAuditCheckBestPracticesFast404::calculateScore()

Implements \SiteAudit\Check\Abstract\calculateScore().

Overrides SiteAuditCheckAbstract::calculateScore

File

Check/BestPractices/Fast404.php, line 62
Contains \SiteAudit\Check\BestPractices\Fast404.

Class

SiteAuditCheckBestPracticesFast404
Class SiteAuditCheckBestPracticesFast404.

Code

public function calculateScore() {
  global $conf;
  if (isset($conf['404_fast_html']) && $conf['404_fast_html']) {
    return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_PASS;
  }
  return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_WARN;
}