You are here

public function SecurityReviewSiteAuditCheckAbstract::getResultFail in Security Review 7

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

Overrides SiteAuditCheckAbstract::getResultFail

1 call to SecurityReviewSiteAuditCheckAbstract::getResultFail()
SiteAuditCheckSecurityFilePerms::getResultFail in ./security_review.site_audit.inc
Implements \SiteAudit\Check\Abstract\getResultWarn().
1 method overrides SecurityReviewSiteAuditCheckAbstract::getResultFail()
SiteAuditCheckSecurityFilePerms::getResultFail in ./security_review.site_audit.inc
Implements \SiteAudit\Check\Abstract\getResultWarn().

File

./security_review.site_audit.inc, line 44
Contains \SiteAudit\Check\Security security_review checks.

Class

SecurityReviewSiteAuditCheckAbstract
Class SecurityReviewSiteAuditCheckAbstract

Code

public function getResultFail() {
  $ret_val = $this->registry[$this->module][$this->check]['failure'];
  if (isset($this->registry[$this->module][$this->check]['value'])) {
    if (is_array($this->registry[$this->module][$this->check]['value'])) {
      $ret_val .= $this
        ->generateUl($this->registry[$this->module][$this->check]['value'], drush_get_option('html'));
    }
    elseif ($this->registry[$this->module][$this->check]['value']) {
      $ret_val .= ' Additional: "' . $this->registry[$this->module][$this->check]['value'] . '"';
    }
  }
  return $ret_val;
}