You are here

public function SiteAuditCheckUsersBlockedNumberOne::calculateScore in Site Audit 8.2

Same name and namespace in other branches
  1. 7 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']
    ->get('status')->value) {
    return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_FAIL;
  }
  return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_PASS;
}