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

Bug #11245 Lowercase filter prepends ' '
Submitted: 2007-06-07 07:38 UTC
From: rrjanbiah Assigned: clbustos
Status: Closed Package: PHP_Beautifier (version 0.1.13)
PHP Version: 5.2.2 OS:
Roadmaps: (Not assigned)    
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:
Solve the problem : 49 - 38 = ?

 [2007-06-07 07:38 UTC] rrjanbiah (Rajesh Jeba Anbiah)
Description: ------------ Lowercase filter prepends the control structure with ugly ' '. Lowercase.filter.php#116 has the reason, but can't just remove the ' '; and it needs more work, I think.


 [2008-03-22 11:49 UTC] doconnor (Daniel O'Connor)
eh? More explaining / a test case / expected vs actual results please?
 [2008-04-01 11:00 UTC] rrjanbiah (Rajesh Jeba Anbiah)
Sample code: <?php if ($a OR $b) { echo 'foo'; } else if ($b AND $c AND $d) { echo 'bar'; } ?> Expected output (with Pear, ArrayNested and Lowercase filters): <?php if ($a or $b) { echo 'foo'; } else if ($b and $c and $d) { echo 'bar'; } ?> Actual output: <?php if ($a or $b) { echo 'foo'; } else if ($b and $c and $d) { echo 'bar'; } ?> Note, the ' ' before "if" and "else"
 [2010-03-16 10:50 UTC] clbustos (Claudio Bustos)
-Status: Open +Status: Closed -Assigned To: +Assigned To: clbustos -Roadmap Versions: +Roadmap Versions: 1.0.0RC1
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the 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.