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

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)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 33 + 7 = ?

 
 [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

Comments

 [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: https://github.com/squizlabs/PHP_CodeSniffer/commit/f5be3288f4983afd0f49c300d33 8c47b8a7352e1