You are here

public function SiteAuditCheckCodebasePhpCopyPasteDetection::getResultInfo in Site Audit 8.2

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

Overrides SiteAuditCheckAbstract::getResultInfo

File

Check/Codebase/PhpCopyPasteDetection.php, line 38
Contains \SiteAudit\Check\Codebase\PhpMessDetection.

Class

SiteAuditCheckCodebasePhpCopyPasteDetection
Class SiteAuditCheckCodebasePhpCopyPasteDetection.

Code

public function getResultInfo() {
  if (isset($this->registry['phpcpd_path_error'])) {
    return dt('Missing phpcpd.');
  }
  return dt('Cannot check for copy/pasted code; no custom code path specified.');
}