public function SiteAuditCheckCachePreprocessCss::calculateScore in Site Audit 8.2
Same name and namespace in other branches
- 7 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() {
$config = \Drupal::config('system.performance')
->get('css.preprocess');
if ($config) {
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_PASS;
}
if (site_audit_env_is_dev()) {
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_INFO;
}
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_FAIL;
}