You are here

public function SiteAuditCheckCodebasePhpDeadCodeDetection::getAction in Site Audit 8.2

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

Overrides SiteAuditCheckAbstract::getAction

File

Check/Codebase/PhpDeadCodeDetection.php, line 103
Contains \SiteAudit\Check\Codebase\PhpDeadCodeDetection.

Class

SiteAuditCheckCodebasePhpDeadCodeDetection
Class SiteAuditCheckCodebasePhpDeadCodeDetection.

Code

public function getAction() {
  if (isset($this->registry['phpdcd_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.');
  }
}