You are here

function _coder_review_drush_xml_output_header in Coder 7.2

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

Formats output as an appropriate XML header tag.

Parameters

string $type: (optional) The type of XML desired. Defaults to 'xml'.

1 call to _coder_review_drush_xml_output_header()
drush_coder_review in coder_review/coder_review.drush.inc
Performs the actual review for drush.

File

coder_review/coder_review.drush.inc, line 756
Command line utility support for Coder_review module.

Code

function _coder_review_drush_xml_output_header($type = 'xml') {

  // Put in an extra concatenation so syntax highlighting in vim doesn't break.
  _coder_review_drush_print('<?xml version="1.0" encoding="UTF-8"?' . '>');
  _coder_review_drush_print($type == 'checkstyle' ? '<checkstyle version="1.3.0RC1">' : '<coderreview version="1.1">');
}