public function SiteAuditCheckCachePreprocessCss::calculateScore in Site Audit 7
Same name and namespace in other branches
- 8.2 Check/Cache/PreprocessCss.php \SiteAuditCheckCachePreprocessCss::calculateScore()
Implements \SiteAudit\Check\Abstract\calculateScore().
Overrides SiteAuditCheckAbstract::calculateScore
File
- Check/
Cache/ PreprocessCss.php, line 64 - Contains \SiteAudit\Check\Cache\PreprocessCss.
Class
- SiteAuditCheckCachePreprocessCss
- Class SiteAuditCheckCachePreprocessCss.
Code
public function calculateScore() {
global $conf;
if ($conf['preprocess_css']) {
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_PASS;
}
if (site_audit_env_is_dev()) {
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_INFO;
}
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_FAIL;
}