PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » PHP » PHP_Beautifier » Bug #2301

throw new 'SomeException' is not correctly formatted

Details

Submitted2004-09-08 09:27 UTC
Fromt dot wagner at techdivision dot com
Assignedclbustos
StatusClosed
PackagePHP_Beautifier
PHP Version5.0.0
OSWindows 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 {