Menu

#3 Broken comment handling around braces

open
nobody
None
5
2012-02-12
2012-02-12
Mike Newton
No

$ cat test.php
<?php

if('foo'==='bar') //comment
{
echo 'baz';
}

?>

$ phpstylist test.php

<?php

if('foo'==='bar')
//comment {
echo 'baz';
}
?>

Discussion


Log in to post a comment.