You are here

function _coder_drush_xml_output_header in Coder 6.2

XML output functions.

1 call to _coder_drush_xml_output_header()
coder_drush_review in ./coder.drush.inc

File

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

Code

function _coder_drush_xml_output_header($type = 'xml') {

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