You are here

function theme_drush_coder in Coder 6.2

Same name and namespace in other branches
  1. 5.2 coder.drush.inc \theme_drush_coder()
  2. 6 coder.drush.inc \theme_drush_coder()
1 call to theme_drush_coder()
theme_coder in ./coder.module
Format coder form and results.

File

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

Code

function theme_drush_coder($name, $filename, $results) {
  if (!_coder_drush_is_option('summary') && !empty($results) && (count($results) && !isset($results[0]) || !_coder_drush_is_option('no-empty'))) {
    if (_coder_drush_is_option('xml') || _coder_drush_is_option('checkstyle')) {
      _coder_drush_xml_output_results($filename, $results);
    }
    else {
      drush_print($filename . ":\n " . implode("\n ", $results) . "\n");
    }
  }
}