Skip to content

Commit 32c63da

Browse files
committed
Merge pull request #592 from wmde/phpcsCleanups
Cleanup phpcs.xml file
2 parents fab7bd9 + 292485e commit 32c63da

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

phpcs.xml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,14 @@
2828
<rule ref="Generic.Functions.FunctionCallArgumentSpacing" />
2929
<rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie" />
3030

31-
<rule ref="Generic.Metrics.NestingLevel">
31+
<rule ref="Generic.Metrics.CyclomaticComplexity">
3232
<properties>
33-
<property name="nestingLevel" value="3" />
34-
<property name="absoluteNestingLevel" value="3" />
33+
<property name="complexity" value="10" />
3534
</properties>
3635
</rule>
37-
38-
<rule ref="Generic.Metrics.CyclomaticComplexity">
36+
<rule ref="Generic.Metrics.NestingLevel">
3937
<properties>
40-
<property name="complexity" value="10" />
41-
<property name="absoluteComplexity" value="10" />
38+
<property name="nestingLevel" value="3" />
4239
</properties>
4340
</rule>
4441

@@ -79,9 +76,8 @@
7976
<rule ref="Squiz.Functions.GlobalFunction" />
8077
<rule ref="Squiz.Scope" />
8178

82-
<rule ref="Squiz.Strings.DoubleQuoteUsage" />
83-
<rule ref="Squiz.Strings.DoubleQuoteUsage.ContainsVar">
84-
<severity>0</severity>
79+
<rule ref="Squiz.Strings.DoubleQuoteUsage">
80+
<exclude name="Squiz.Strings.DoubleQuoteUsage.ContainsVar" />
8581
</rule>
8682

8783
<rule ref="Squiz.WhiteSpace.CastSpacing" />

0 commit comments

Comments
 (0)