public function SiteAuditCheckCodebasePhpCodeSniffer::getResultInfo in Site Audit 8.2
Implements \SiteAudit\Check\Abstract\getResultInfo().
Overrides SiteAuditCheckAbstract::getResultInfo
File
- Check/
Codebase/ PhpCodeSniffer.php, line 38 - Contains \SiteAudit\Check\Codebase\PhpCodeSniffer.
Class
- SiteAuditCheckCodebasePhpCodeSniffer
- Class SiteAuditCheckCodebasePhpCodeSniffer.
Code
public function getResultInfo() {
if (isset($this->registry['phpcs_path_error'])) {
return dt('Missing phpcs.');
}
if (isset($this->registry['custom_code'])) {
return dt('Cannot check for coding standard violations; no custom code path specified.');
}
return dt('Cannot find coding standards inside ' . $this->registry['phpcs_standard']);
}