Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 3.7.1

Bug #19732 PSR2: some control structures errors not reported
Submitted: 2012-12-06 00:08 UTC
From: alxant7 Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version 1.4.3)
PHP Version: Irrelevant OS: All
Roadmaps: (Not assigned)    

 [2012-12-06 00:08 UTC] alxant7 (Alexey Antonov)
Description: ------------ No errors reported while the violations of the following PSR-2 rules exists: There MUST NOT be a space after the opening parenthesis There MUST NOT be a space before the closing parenthesis Test script: --------------- <?php if ( $expr ) { } Expected result: ---------------- Relevant errors reported Actual result: -------------- No errors reported


 [2012-12-06 04:47 UTC] squiz (Greg Sherwood)
-Status: Open +Status: Closed -Assigned To: +Assigned To: squiz
Thanks. I forgot to add the sniff for that. It is now committed to the github repo: 8c47b8a7352e1