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
Comment #1
klausiFixed: http://drupalcode.org/project/drupalcs.git/commit/6c24cd1
Please test.
Comment #2
duellj commentedTested and works great, thanks!
Comment #3.0
(not verified) commentedUpdated issue summary.