You are here

public function SiteAuditCheckCacheLock::calculateScore in Site Audit 7

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

Overrides SiteAuditCheckAbstract::calculateScore

File

Check/Cache/Lock.php, line 70
Contains \SiteAudit\Check\Cache\Lock.

Class

SiteAuditCheckCacheLock
Class SiteAuditCheckCacheLock.

Code

public function calculateScore() {
  $this->registry['lock_inc'] = variable_get('lock_inc');
  if (!$this->registry['lock_inc']) {
    return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_INFO;
  }
  return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_PASS;
}