mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-10 00:16:13 +01:00
[TASK] allow newlines for ternary operator (#338)
The previous configuration disallowed newlines in ternary operator like: $a = $condition1 && $condition2 ? $foo_man_this_is_too_long_what_should_i_do : $bar; This seems very arbitrary since breaking on other operators is in fact allowed. This change allows such longer statements to be broken apart over several lines.
This commit is contained in:
parent
9c1a522ebb
commit
02e3633756
1 changed files with 5 additions and 1 deletions
|
@ -122,7 +122,11 @@
|
|||
<rule ref="PEAR.WhiteSpace.ScopeClosingBrace"/>
|
||||
<rule ref="Squiz.WhiteSpace.CastSpacing"/>
|
||||
<rule ref="Squiz.WhiteSpace.LogicalOperatorSpacing"/>
|
||||
<rule ref="Squiz.WhiteSpace.OperatorSpacing"/>
|
||||
<rule ref="Squiz.WhiteSpace.OperatorSpacing">
|
||||
<properties>
|
||||
<property name="ignoreNewlines" value="true" />
|
||||
</properties>
|
||||
</rule>
|
||||
<rule ref="Squiz.WhiteSpace.PropertyLabelSpacing"/>
|
||||
<rule ref="Squiz.WhiteSpace.SemicolonSpacing"/>
|
||||
</ruleset>
|
||||
|
|
Loading…
Reference in a new issue