public function SiteAuditCheckContentVocabulariesUnused::calculateScore in Site Audit 7
Same name and namespace in other branches
- 8.2 Check/Content/VocabulariesUnused.php \SiteAuditCheckContentVocabulariesUnused::calculateScore()
Implements \SiteAudit\Check\Abstract\calculateScore().
Overrides SiteAuditCheckAbstract::calculateScore
File
- Check/
Content/ VocabulariesUnused.php, line 64 - Contains \SiteAudit\Check\Content\ContentVocabulariesUnused.
Class
- SiteAuditCheckContentVocabulariesUnused
- Class SiteAuditCheckContentVocabulariesUnused.
Code
public function calculateScore() {
if (empty($this->registry['vocabulary_unused'])) {
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_PASS;
}
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_WARN;
}