PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » PHP » PHP_Beautifier » Bug #2104

BSD bracing problem

Details

Submitted2004-08-10 17:58 UTC
Fromjustin at onyourmark dot com
Assignedclbustos
StatusClosed
PackagePHP_Beautifier
PHP Version5.0.0
OSFreeBSD 4.10-CURRENT
Roadmaps(Not assigned)

Comments

[2004-08-10 17:58 UTC] justin at onyourmark dot com

Description:
------------
IndentStyle(style=bsd) does not properly place a line return between the close brace of a block and the else keyword.

Reproduce code:
---------------
if([expression])
{
[statements]
} else {
[statements]
}

Expected result:
----------------
if([expression])
{
[statements]
}
else
{
[statements]
}

Actual result:
--------------
if([expression])
{
[statements]
} else
{
[statements]
}