Drupal_CS catches intention errors if they are blocks of code, e.g.:

  function test() {
}

or

function test() {
    if (..) {
    }
}

but if you just have single lines of code within a block, then they are missed, e.g.:

function test() {
  echo "this code is fine";
    echo "this code isn't, but codesniffer doesn't complain";
}

Comments

klausi’s picture

Status: Active » Fixed
duellj’s picture

Tested and works great, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Updated issue summary.