You are here

public function SiteAuditCheckAbstract::getScore in Site Audit 8.2

Same name and namespace in other branches
  1. 7 Check/Abstract.php \SiteAuditCheckAbstract::getScore()

Get a quantifiable number representing a check result; lazy initialization.

Return value

int Constants indicating pass, fail and so forth.

11 calls to SiteAuditCheckAbstract::getScore()
SiteAuditCheckCodebasePhpMessDetection::getAction in Check/Codebase/PhpMessDetection.php
Implements \SiteAudit\Check\Abstract\getAction().
SiteAuditCheckContentContentEntityTypesUnused::getAction in Check/Content/ContentEntityTypesUnused.php
Implements \SiteAudit\Check\Abstract\getAction().
SiteAuditCheckContentDuplicateTitles::getAction in Check/Content/DuplicateTitles.php
Implements \SiteAudit\Check\Abstract\getAction().
SiteAuditCheckContentFieldCount::getAction in Check/Content/FieldCount.php
Implements \SiteAudit\Check\Abstract\getAction().
SiteAuditCheckContentFieldsUnused::getAction in Check/Content/FieldsUnused.php
Implements \SiteAudit\Check\Abstract\getAction().

... See full list

File

Check/Abstract.php, line 252
Contains \SiteAudit\Check\Abstract.

Class

SiteAuditCheckAbstract
Class SiteAuditCheckAbstract.

Code

public function getScore() {
  if (!isset($this->score)) {
    $this->score = $this
      ->calculateScore();
  }
  return $this->score;
}