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 #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]
}