Skip to content

Commit 0348c7d

Browse files
committed
removed custom RequireMultiLineTernaryOperatorSniff, used configuration
1 parent b93d832 commit 0348c7d

File tree

2 files changed

+3
-215
lines changed

2 files changed

+3
-215
lines changed

preset-sniffer/Nette.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,11 @@ https://github.com/slevomat/coding-standard
8888
<rule ref="SlevomatCodingStandard.ControlStructures.NewWithoutParentheses"/>
8989

9090
<!-- Ternary operator has to be reformatted to more lines when the line length exceeds the given limit. -->
91-
<rule ref="../src/Sniffs/RequireMultiLineTernaryOperatorSniff.php">
92-
<!-- is ignored...
91+
<rule ref="SlevomatCodingStandard.ControlStructures.RequireMultiLineTernaryOperator">
9392
<properties>
9493
<property name="lineLengthLimit" value="90"/>
95-
<property name="expressionsMinLength" value="20"/>
96-
</properties> -->
94+
<property name="minExpressionsLength" value="20"/>
95+
</properties>
9796
</rule>
9897

9998
<!-- Enforces conditions of if, elseif, while and do-while with one or more boolean operators to be splitted to more lines so each condition part is on its own line -->

src/Sniffs/RequireMultiLineTernaryOperatorSniff.php

Lines changed: 0 additions & 211 deletions
This file was deleted.

0 commit comments

Comments
 (0)