You are here

public function SiteAuditCheckBestPracticesSites::calculateScore in Site Audit 8.2

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

Overrides SiteAuditCheckAbstract::calculateScore

File

Check/BestPractices/Sites.php, line 67
Contains \SiteAudit\Check\BestPractices\Sites.

Class

SiteAuditCheckBestPracticesSites
Class SiteAuditCheckBestPracticesSites.

Code

public function calculateScore() {
  $drupal_root = drush_get_context('DRUSH_SELECTED_DRUPAL_ROOT');
  $this->registry['multisite_enabled'] = file_exists($drupal_root . '/sites/sites.php');
  if ($this->registry['multisite_enabled'] && is_link($drupal_root . '/sites/sites.php')) {
    return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_WARN;
  }
  return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_PASS;
}