You are here

public function SiteAuditCheckBestPracticesSettings::getAction in Site Audit 8.2

Same name and namespace in other branches
  1. 7 Check/BestPractices/Settings.php \SiteAuditCheckBestPracticesSettings::getAction()

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

Overrides SiteAuditCheckAbstract::getAction

File

Check/BestPractices/Settings.php, line 53
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.');
  }
}