public function SiteAuditCheckUsersWhoIsNumberOne::calculateScore in Site Audit 8.2
Same name and namespace in other branches
- 7 Check/Users/WhoIsNumberOne.php \SiteAuditCheckUsersWhoIsNumberOne::calculateScore()
Implements \SiteAudit\Check\Abstract\calculateScore().
Overrides SiteAuditCheckAbstract::calculateScore
File
- Check/
Users/ WhoIsNumberOne.php, line 63 - Contains \SiteAudit\Check\Users\WhoIsNumberOne.
Class
- SiteAuditCheckUsersWhoIsNumberOne
- Class SiteAuditCheckUsersWhoIsNumberOne.
Code
public function calculateScore() {
$uid_1 = User::load(1);
if (!$uid_1) {
$this->abort = TRUE;
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_FAIL;
}
$this->registry['uid_1'] = $uid_1;
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_INFO;
}