You are here

function coder_preprocessor_php in Coder 5

Same name and namespace in other branches
  1. 5.2 scripts/coder_format/coder_format.inc \coder_preprocessor_php()
  2. 6.2 scripts/coder_format/coder_format.inc \coder_preprocessor_php()
  3. 6 scripts/coder_format/coder_format.inc \coder_preprocessor_php()
  4. 7.2 scripts/coder_format/coder_format.inc \coder_preprocessor_php()
  5. 7 scripts/coder_format/coder_format.inc \coder_preprocessor_php()

Related topics

File

scripts/coder_format/coder_format.inc, line 857

Code

function coder_preprocessor_php() {
  return array(
    '#title' => 'Always use <?php ?> to delimit PHP code, not the <? ?> shorthands.',
    '#search' => '/<\\?(\\s)/',
    '#replace' => "<?php\$1",
  );
}