public function SiteAuditCheckFrontEndGooglePageSpeed::getResultPass in Site Audit 8.2
Implements \SiteAudit\Check\Abstract\getResultPass().
Overrides SiteAuditCheckAbstract::getResultPass
2 calls to SiteAuditCheckFrontEndGooglePageSpeed::getResultPass()
- SiteAuditCheckFrontEndGooglePageSpeed::getResultFail in Check/
FrontEnd/ GooglePageSpeed.php - Implements \SiteAudit\Check\Abstract\getResultFail().
- SiteAuditCheckFrontEndGooglePageSpeed::getResultWarn in Check/
FrontEnd/ GooglePageSpeed.php - Implements \SiteAudit\Check\Abstract\getResultWarn().
File
- Check/
FrontEnd/ GooglePageSpeed.php, line 247 - Contains \SiteAudit\Check\Insights\Analyze.
Class
- SiteAuditCheckFrontEndGooglePageSpeed
- Class SiteAuditCheckFrontEndGooglePageSpeed.
Code
public function getResultPass() {
$ret_val = '';
if (drush_get_option('detail')) {
if (drush_get_option('html')) {
$ret_val .= "<h2>" . dt('Desktop') . "</h2>";
}
else {
$ret_val .= dt('Desktop:');
}
$ret_val .= $this
->renderResults($this->registry['json_desktop_result']);
if (drush_get_option('html')) {
$ret_val .= "<h2>" . dt('Mobile') . "</h2>";
}
else {
$ret_val .= PHP_EOL . str_repeat(' ', 4) . dt('Mobile');
}
$ret_val .= $this
->renderResults($this->registry['json_mobile_result']);
}
return $ret_val;
}