FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=13803&edit=1

ID: 13803
Updated by: clbustos@surnet.cl
Reported By: terrafrost at php dot net
Summary: switches not properly indenting with
IndentStyles(style=bsd)
Status: Open
Type: Bug
Package: PHP_Beautifier
Package Version: 0.1.13
PHP Version: Irrelevant
-Assigned To:
+Assigned To: clbustos
-Roadmap Versions:
+Roadmap Versions: 1.0.0RC1
New Comment:

-Assigned To:
+Assigned To: clbustos
-Roadmap Versions:
+Roadmap Versions: 1.0.0RC1



Previous Comments:
------------------------------------------------------------------------

[2008-04-29 17:47:02] terrafrost

Description:
------------
Run the following on the test script:

php_beautifier --filters "IndentStyles(style=bsd)" source.php
source.txt

Test script:
---------------
<?php
$a='b';
switch ($a){case 'a':case 'b':case 'c':break;default:break;}
?>

Expected result:
----------------
<?php
$a = 'b';
switch ($a) {
case 'a':
case 'b':
case 'c':
break;
default:
break;
}
?>

Actual result:
--------------
<?php
$a = 'b';
switch ($a)
{
case 'a':
case 'b':
case 'c':
break;
default:
break;
}
?>

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMar 16, '10 at 6:18a
activeMar 16, '10 at 6:18a
posts1
users1
websitepear.php.net

1 user in discussion

Clbustos: 1 post

People

Translate

site design / logo © 2022 Grokbase