You are here

public function SiteAuditCheckFrontEndGooglePageSpeed::getResultFail in Site Audit 8.2

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

Overrides SiteAuditCheckAbstract::getResultFail

File

Check/FrontEnd/GooglePageSpeed.php, line 29
Contains \SiteAudit\Check\Insights\Analyze.

Class

SiteAuditCheckFrontEndGooglePageSpeed
Class SiteAuditCheckFrontEndGooglePageSpeed.

Code

public function getResultFail() {
  if (!empty($this->registry['errors'])) {
    if (drush_get_option('html')) {
      $ret_val = '<ul><li>' . implode('</li><li>', $this->registry['errors']) . '</li></ul>';
    }
    else {
      $ret_val = implode(PHP_EOL, $this->registry['errors']);
    }
    return $ret_val;
  }
  $this
    ->getResultPass();
}