function _coder_review_drush_xml_output_results in Coder 7.2
Same name and namespace in other branches
- 7 coder_review/coder_review.drush.inc \_coder_review_drush_xml_output_results()
Formats XML output for a filename and its results (if any).
Parameters
string $filename: The filename as a string.
array $results: A Results array from performing a Coder review.
1 call to _coder_review_drush_xml_output_results()
- theme_drush_coder_review in coder_review/
coder_review.drush.inc - Returns the results and filenames of a review in a format for drush use.
File
- coder_review/
coder_review.drush.inc, line 809 - Command line utility support for Coder_review module.
Code
function _coder_review_drush_xml_output_results($filename, array $results) {
if (empty($results) || count($results) == 1 && isset($results[0])) {
_coder_review_drush_print('<file name = "' . $filename . '" />');
}
else {
_coder_review_drush_print('<file name = "' . $filename . '">' . "\n" . implode("\n ", $results) . "\n" . '</file>');
}
}