We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example:
if ((1) || (2) || (3) ) { echo 'foo'; }
The above is bad because visually it looks like we're still inside the if statement as the indent has changed.
It's also a little messed up in the case of the ) { inline on the third line:
) {
if ((1) || (2) || (3)) { echo 'foo'; }
but it gets worse with two lines inside the if:
if (1 || 2 || 3) { echo 'foo'; echo 'bar'; }
and finally, with the bracket on a new line:
I would expect these to indent as so:
if ((1) || (2) || (3) ) { echo 'foo'; } if ((1) || (2) || (3)) { echo 'foo'; } if (1 || 2 || 3) { echo 'foo'; echo 'bar'; } if ((1) || (2) || (3)) { echo 'foo'; }
or like this (possibly configurable):
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Example:
The above is bad because visually it looks like we're still inside the if statement as the indent has changed.
It's also a little messed up in the case of the
) {
inline on the third line:but it gets worse with two lines inside the if:
and finally, with the bracket on a new line:
I would expect these to indent as so:
or like this (possibly configurable):
The text was updated successfully, but these errors were encountered: