function _coder_review_drush_xml_output_header in Coder 7
Same name and namespace in other branches
- 7.2 coder_review/coder_review.drush.inc \_coder_review_drush_xml_output_header()
XML: output appropriate header tag.
1 call to _coder_review_drush_xml_output_header()
- coder_review_drush_review in coder_review/
coder_review.drush.inc - Do the actual review.
File
- coder_review/
coder_review.drush.inc, line 353 - Command line utility for coder_review.
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"?' . '>');
switch ($type) {
case 'checkstyle':
_coder_review_drush_print('<checkstyle version="1.3.0RC1">');
break;
case 'xml':
default:
_coder_review_drush_print('<coderreview version="1.1">');
break;
}
}