You are here

public function SiteAuditCheckWatchdogSyslog::calculateScore in Site Audit 8.2

Same name and namespace in other branches
  1. 7 Check/Watchdog/Syslog.php \SiteAuditCheckWatchdogSyslog::calculateScore()

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

Overrides SiteAuditCheckAbstract::calculateScore

File

Check/Watchdog/Syslog.php, line 67
Contains \SiteAudit\Check\Watchdog\Syslog.

Class

SiteAuditCheckWatchdogSyslog
Class SiteAuditCheckWatchdogSyslog.

Code

public function calculateScore() {
  $this->registry['syslog_enabled'] = \Drupal::moduleHandler()
    ->moduleExists('syslog');
  if ($this->registry['syslog_enabled']) {
    if (drush_get_option('vendor') == 'pantheon') {
      return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_FAIL;
    }
  }
  return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_INFO;
}