Home » PHP » PHP_Beautifier » Bug #2301
throw new 'SomeException' is not correctly formatted
Details
| Submitted | 2004-09-08 09:27 UTC |
|---|---|
| From | t dot wagner at techdivision dot com |
| Assigned | clbustos |
| Status | Closed |
| Package | PHP_Beautifier |
| PHP Version | 5.0.0 |
| OS | Windows XP SP1 |
| Roadmaps | (Not assigned) |
Comments
[2004-09-08 09:27 UTC] t dot wagner at techdivision dot com
Description:
------------
When I try to beautify PHP5 code with the 'throw new Exception' statement, the code is not formatted correctly. The whitspace between throw AND new is deleted.
Tanks for a quick bug fix or workaround. I like your Beautifier. I think it's a very good tool.
Thanks Tim
Reproduce code:
---------------
if ($ret->numRows() == 0) {
throw new AccountFindException(...);
} else {
Expected result:
----------------
if ($ret->numRows() == 0) {
throw new AccountFindException(...);
} else {
Actual result:
--------------
if ($ret->numRows() == 0) {
thrownew AccountFindException(...);
} else {