public function SiteAuditCheckAbstract::logXmlError in Site Audit 8.2
Logs error if unable to parse XML output.
It is used by the checks in codebase reports which parse the xml output generated by third-party tools.
Parameters
string $path: Path of the custom code file/directory being checked by the tool.
string $tool: Name of the tool which generated XML output.
5 calls to SiteAuditCheckAbstract::logXmlError()
- SiteAuditCheckCodebasePhpCodeSniffer::calculateScore in Check/
Codebase/ PhpCodeSniffer.php - Implements \SiteAudit\Check\Abstract\calculateScore().
- SiteAuditCheckCodebasePhpCopyPasteDetection::calculateScore in Check/
Codebase/ PhpCopyPasteDetection.php - Implements \SiteAudit\Check\Abstract\calculateScore().
- SiteAuditCheckCodebasePhpDeadCodeDetection::calculateScore in Check/
Codebase/ PhpDeadCodeDetection.php - Implements \SiteAudit\Check\Abstract\calculateScore().
- SiteAuditCheckCodebasePhpLOC::calculateScore in Check/
Codebase/ PhpLOC.php - Implements \SiteAudit\Check\Abstract\calculateScore().
- SiteAuditCheckCodebasePhpMessDetection::calculateScore in Check/
Codebase/ PhpMessDetection.php - Implements \SiteAudit\Check\Abstract\calculateScore().
File
- Check/
Abstract.php, line 377 - Contains \SiteAudit\Check\Abstract.
Class
- SiteAuditCheckAbstract
- Class SiteAuditCheckAbstract.
Code
public function logXmlError($path, $tool) {
drush_log(dt('Unable to parse XML output for @file generated by @tool', array(
'@file' => $path,
'@tool' => $tool,
)), 'error');
}