Replies: 2 comments 7 replies
-
@GlennBags Yes, PSR-12 has specific requirements, so that sniff may not be the right fit for you. You may want to try out the |
Beta Was this translation helpful? Give feedback.
7 replies
-
@GlennBags Yes, the sniffs are the same, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Saw that there's a means to do add rules in the ruleset.xml.
I have a weird thing happening where the beautifier is adding a new line in an
if
statement if the conditional is multi-line, but not otherwise:Is there a rule that I can add to keep it from adding the new lines?
Thanks,
Glenn
EDIT: Hmm, just read in PSR-12:
"Expressions in parentheses MAY be split across multiple lines, where each subsequent line is indented at least once. When doing so, the first condition MUST be on the next line".
Apparently that's where it's coming from.
However, would still be curious how to suppress that in the case we decide on that as an exception.
Beta Was this translation helpful? Give feedback.
All reactions