You are here

function _coder_review_drush_xml_output_results in Coder 7

Same name and namespace in other branches
  1. 7.2 coder_review/coder_review.drush.inc \_coder_review_drush_xml_output_results()

XML: output filename and its results (if any).

1 call to _coder_review_drush_xml_output_results()
theme_drush_coder_review in coder_review/coder_review.drush.inc
Theme printing of results and filenames.

File

coder_review/coder_review.drush.inc, line 403
Command line utility for coder_review.

Code

function _coder_review_drush_xml_output_results($filename, $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>');
  }
}