public function SiteAuditCheckCodebasePhpCopyPasteDetection::getAction in Site Audit 8.2
Implements \SiteAudit\Check\Abstract\getAction().
Overrides SiteAuditCheckAbstract::getAction
File
- Check/
Codebase/ PhpCopyPasteDetection.php, line 101 - Contains \SiteAudit\Check\Codebase\PhpMessDetection.
Class
- SiteAuditCheckCodebasePhpCopyPasteDetection
- Class SiteAuditCheckCodebasePhpCopyPasteDetection.
Code
public function getAction() {
if (isset($this->registry['phpcpd_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.');
}
}