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

Bug #12378 equal sign alignments problem with while()
Submitted: 2007-11-04 11:22 UTC
From: cweiske Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version 1.0.0RC1)
PHP Version: 5.2.4 OS:
Roadmaps: 1.0.0RC2    
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 : 13 - 2 = ?

 
 [2007-11-04 11:22 UTC] cweiske (Christian Weiske)
Description: ------------ In HTML_Template_PHPLIB/HTML/Template/PHPLIB.php line #186, I get a warning: 186 | WARNING | Equals sign not aligned with surrounding assignments; expected 14 spaces but found 1 space This is wrong, since it tries to align a variable assignment = with a while($var = somefunc()) assignment. Further, if I "fix" that, it tells me to not unalign it.

Comments

 [2007-11-04 22:22 UTC] squiz (Greg Sherwood)
Test code: $error = false; while (list($h, $f) = each($handle)) { $error = true; }
 [2007-11-05 01:04 UTC] squiz (Greg Sherwood)
This bug has been fixed in CVS. 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.