squizlabs/PHP_CodeSniffer — pull request #121 by erikwiffin (2013-05-14 20:57:44+00:00)
Title: Respect ignoreComments in AbstractPatternSniff::processPattern

Currently, In AbstractPatternSniff, when checking to see if indents follow a
newline, even if ignoreComments is true, if the previous token is
a comment, an error will be reported.

if (foo) {
}// This comment will trigger an error
else {
}

In this commit, matching against "}EOLelse {EOL" with ignoredComments on, the comment
is ignored and the if block will validate.

This fixes [Bug #19811](http://pear.php.net/bugs/bug.php?id=19811).