public function SiteAuditCheckBestPracticesSettings::getAction in Site Audit 7
Same name and namespace in other branches
- 8.2 Check/BestPractices/Settings.php \SiteAuditCheckBestPracticesSettings::getAction()
Implements \SiteAudit\Check\Abstract\getAction().
Overrides SiteAuditCheckAbstract::getAction
File
- Check/
BestPractices/ Settings.php, line 57 - Contains \SiteAudit\Check\BestPractices\Settings.
Class
- SiteAuditCheckBestPracticesSettings
- Class SiteAuditCheckBestPracticesSettings.
Code
public function getAction() {
if ($this->score == SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_WARN) {
return dt('Don\'t rely on symbolic links for core configuration files; copy settings.php where it should be and remove the symbolic link.');
}
if ($this->score == SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_FAIL) {
return dt('Even if environment settings are injected, create a stub settings.php file for compatibility.');
}
}