Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PSR2/ClassDeclaration: remove some redundant code [2]
In the original version of the sniff, only comments tokens after the close brace were ignored for the `CloseBraceSameLine` check. Since then the sniff has received numerous changes improving on that code to prevent false positives. Once such change was made in response to issue squizlabs/PHP_CodeSniffer 689, the fix adding ignoring for whitespace tokens to the code block. This makes the `$tokens[$nextContent]['content'] !== $phpcsFile->eolChar` check redundant as that condition can now never be true anymore (as it could only match on `T_WHITESPACE` tokens and those are now ignored). This change is covered by the tests previously added.
- Loading branch information