public function SiteAuditCheckViewsCount::calculateScore in Site Audit 8.2
Same name and namespace in other branches
- 7 Check/Views/Count.php \SiteAuditCheckViewsCount::calculateScore()
Implements \SiteAudit\Check\Abstract\calculateScore().
Overrides SiteAuditCheckAbstract::calculateScore
File
- Check/
Views/ Count.php, line 70 - Contains \SiteAudit\Check\Views\Count.
Class
- SiteAuditCheckViewsCount
- Class SiteAuditCheckViewsCount.
Code
public function calculateScore() {
$this->registry['views'] = Views::getEnabledViews();
if (empty($this->registry['views'])) {
$this->abort = TRUE;
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_WARN;
}
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_PASS;
}