You are here

public function SiteAuditCheckWatchdogSyslog::calculateScore in Site Audit 7

Same name and namespace in other branches
  1. 8.2 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'] = module_exists('syslog');
  if ($this->registry['syslog_enabled']) {
    if (drush_get_option('vendor') == 'pantheon') {
      return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_FAIL;
    }
  }
  return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_INFO;
}