public function SiteAuditCheckCacheAnon::calculateScore in Site Audit 7
Implements \SiteAudit\Check\Abstract\calculateScore().
Overrides SiteAuditCheckAbstract::calculateScore
File
- Check/
Cache/ Anon.php, line 64 - Contains \SiteAudit\Check\Cache\Anon.
Class
- SiteAuditCheckCacheAnon
- Class SiteAuditCheckCacheAnon.
Code
public function calculateScore() {
global $conf;
if ($conf['cache']) {
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_PASS;
}
if (site_audit_env_is_dev()) {
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_INFO;
}
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_FAIL;
}