You are here

public function SiteAuditCheckCodebasePhpDeadCodeDetection::getResultInfo in Site Audit 8.2

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

Overrides SiteAuditCheckAbstract::getResultInfo

File

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

Class

SiteAuditCheckCodebasePhpDeadCodeDetection
Class SiteAuditCheckCodebasePhpDeadCodeDetection.

Code

public function getResultInfo() {
  if (isset($this->registry['phpdcd_path_error'])) {
    return dt('Missing phpdcd.');
  }
  elseif (isset($this->registry['custom_code'])) {
    return dt('Cannot check for unreachable code; no custom code path specified.');
  }
  return dt('phpdcd does not support XML output yet; please request support in https://github.com/sebastianbergmann/phpdcd/pull/58');
}