Skip to content

Commit 15940f4

Browse files
committed
Report useless parentheses, semicolons, constant type hints
1 parent 6df9e91 commit 15940f4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/ruleset.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,12 @@
124124
<property name="linesCountAfterLastUse" value="1"/>
125125
</properties>
126126
</rule>
127+
<rule ref="SlevomatCodingStandard.PHP.UselessParentheses">
128+
<properties>
129+
<property name="ignoreComplexTernaryConditions" value="true"/>
130+
</properties>
131+
</rule>
132+
<rule ref="SlevomatCodingStandard.PHP.UselessSemicolon"/>
127133
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
128134
<properties>
129135
<property name="linesCountBeforeDeclare" value="0"/>
@@ -137,6 +143,7 @@
137143
<property name="spacesCountBeforeColon" value="0"/>
138144
</properties>
139145
</rule>
146+
<rule ref="SlevomatCodingStandard.TypeHints.UselessConstantTypeHint"/>
140147
<rule ref="SlevomatCodingStandard.Variables.DisallowVariableVariable"/>
141148
<rule ref="SlevomatCodingStandard.Whitespaces.DuplicateSpaces"/>
142149
<rule ref="Squiz.Strings.ConcatenationSpacing">

0 commit comments

Comments
 (0)