You are here

public function SiteAuditCheckBestPracticesPhpFilter::getResultFail in Site Audit 7

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

Overrides SiteAuditCheckAbstract::getResultFail

File

Check/BestPractices/PhpFilter.php, line 29
Contains \SiteAudit\Check\BestPractices\PhpFilter.

Class

SiteAuditCheckBestPracticesPhpFilter
Class SiteAuditCheckBestPracticesPhpFilter.

Code

public function getResultFail() {
  if (drush_get_option('detail')) {
    return dt('PHP Filter is enabled! Executable code should never be stored in the database, and support for this feature was removed in Drupal 8 - https://drupal.org/node/1203886');
  }
  else {
    return dt('PHP Filter is enabled!');
  }
}