You are here

public function SiteAuditCheckCodebasePhpCodeSniffer::getAction in Site Audit 8.2

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

Overrides SiteAuditCheckAbstract::getAction

File

Check/Codebase/PhpCodeSniffer.php, line 106
Contains \SiteAudit\Check\Codebase\PhpCodeSniffer.

Class

SiteAuditCheckCodebasePhpCodeSniffer
Class SiteAuditCheckCodebasePhpCodeSniffer.

Code

public function getAction() {
  if (isset($this->registry['phpcs_path_error'])) {
    return dt('Run "composer install" from the site_audit installation root to install missing dependencies.');
  }
  if (isset($this->registry['custom_code'])) {
    return dt('Use the --custom-code option.');
  }
}