You are here

function theme_drush_coder_review in Coder 7

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

Theme printing of results and filenames.

1 call to theme_drush_coder_review()
theme_coder_review in coder_review/coder_review.module
Format coder_review form and results.

File

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

Code

function theme_drush_coder_review($variables) {
  $name = $variables['name'];
  $filename = $variables['filename'];
  $results = $variables['results'];
  if (!_coder_review_drush_is_option('summary') && !empty($results) && (count($results) && !isset($results[0]) || !_coder_review_drush_is_option('no-empty'))) {
    if (_coder_review_drush_is_option('checkstyle') || _coder_review_drush_is_option('xml')) {
      _coder_review_drush_xml_output_results($filename, $results);
    }
    else {
      _coder_review_drush_print($filename . ":\n " . implode("\n ", $results) . "\n");
    }
  }
}