public function SiteAuditCheckFrontEndWebPageTest::getResultFail in Site Audit 8.2
Implements \SiteAudit\Check\Abstract\getResultFail().
Overrides SiteAuditCheckAbstract::getResultFail
File
- Check/
FrontEnd/ WebPageTest.php, line 29 - Contains \SiteAudit\Check\FrontEnd\WebPageTest.
Class
- SiteAuditCheckFrontEndWebPageTest
- Class SiteAuditCheckFrontEndWebPageTest.
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;
}
return $this
->getResultPass();
}