You are here

public function SiteAuditCheckExtensionsSecurity::calculateScore in Site Audit 7

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

Overrides SiteAuditCheckAbstract::calculateScore

File

Check/Extensions/Security.php, line 85
Contains \SiteAudit\Check\Extensions\Security.

Class

SiteAuditCheckExtensionsSecurity
Class SiteAuditCheckExtensionsSecurity.

Code

public function calculateScore() {
  if (!empty($this->registry['projects_security'])) {
    return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_FAIL;
  }
  return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_PASS;
}