Fix IndentStyles so open brace after object operator isn't treated as start of a block #8

Merged
merged 1 commit into from Jul 1, 2012

Conversation

Projects
None yet
2 participants
@kcivey
Contributor

kcivey commented Jun 24, 2012

The t_open_brace methods for the indent styles need to use openBraceDontProcess the way the default t_open_brace does. Without that, the open brace in something like $object->{$property} gets treated as starting a block, and the formatting is trashed. See also http://pear.php.net/bugs/bug.php?id=17780

This also avoids end-of-line spaces after if (), etc., in styles that put the open brace on a new line.

Fix IndentStyles so open brace after object operator isn't treated as
the start of a block (use openBraceDontProcess).  Also avoid trailing
spaces after "if ()", etc., in styles that put open brace on new line.

clbustos added a commit that referenced this pull request Jul 1, 2012

Merge pull request #8 from Survos/fix-indentstyles
Fix IndentStyles so open brace after object operator isn't treated as start of a block

@clbustos clbustos merged commit b6376d5 into clbustos:master Jul 1, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment