You are here

function _coder_drush_xml_output_results in Coder 6.2

1 call to _coder_drush_xml_output_results()
theme_drush_coder in ./coder.drush.inc

File

./coder.drush.inc, line 293
Command line utility for coder.

Code

function _coder_drush_xml_output_results($filename, $results) {
  if (empty($results) || count($results) == 1 && isset($results[0])) {
    drush_print('<file name = "' . $filename . '" />');
  }
  else {
    drush_print('<file name = "' . $filename . '">' . "\n" . implode("\n ", $results) . "\n" . '</file>');
  }
}