public function SiteAuditCheckUsersBlockedNumberOne::calculateScore in Site Audit 7
Same name and namespace in other branches
- 8.2 Check/Users/BlockedNumberOne.php \SiteAuditCheckUsersBlockedNumberOne::calculateScore()
Implements \SiteAudit\Check\Abstract\calculateScore().
Overrides SiteAuditCheckAbstract::calculateScore
File
- Check/
Users/ BlockedNumberOne.php, line 62 - Contains \SiteAudit\Check\Users\BlockedNumberOne.
Class
- SiteAuditCheckUsersBlockedNumberOne
- Class SiteAuditCheckUsersBlockedNumberOne.
Code
public function calculateScore() {
if (!$this->registry['uid_1']->status) {
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_FAIL;
}
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_PASS;
}