You are here

public function SiteAuditCheckUsersWhoIsNumberOne::calculateScore in Site Audit 7

Same name and namespace in other branches
  1. 8.2 Check/Users/WhoIsNumberOne.php \SiteAuditCheckUsersWhoIsNumberOne::calculateScore()

Implements \SiteAudit\Check\Abstract\calculateScore().

Overrides SiteAuditCheckAbstract::calculateScore

File

Check/Users/WhoIsNumberOne.php, line 61
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;
}