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

Bug #16697 MultiLineConditionSniff incorrect result with inline IF
Submitted: 2009-10-13 14:16 UTC
From: ebauman Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version 1.2.0)
PHP Version: 5.2.5 OS: Windows XP
Roadmaps: (Not assigned)    
Subscription  


 [2009-10-13 14:16 UTC] ebauman (Eric Bauman)
Description: ------------ When PEAR/Sniffs/ControlStructures/MultiLineConditionSniff.php processes a single-line inline IF, it issues the error 'There must be a single space between the closing parenthesis and the openning brace of a multi-line IF statement'. Test script: --------------- <?php if (isset($foo)) echo 'bar'; ?> Expected result: ---------------- All OK! Actual result: -------------- ERROR on line 3: There must be a single space between the closing parenthesis and the openning brace of a multi-line IF statement

Comments

 [2009-10-22 05:11 UTC] squiz (Greg Sherwood)
-Status: Open +Status: Closed -Assigned To: +Assigned To: squiz
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.