Skip to content

Commit 0edf4e9

Browse files
committed
Move rule definitions to proper file
1 parent 7bee4a4 commit 0edf4e9

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

phpcs.xml.dist

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,6 @@
77

88
<rule ref="Cdn77"/>
99

10-
<rule ref="SlevomatCodingStandard.Classes.RequireConstructorPropertyPromotion" />
11-
<rule ref="SlevomatCodingStandard.ControlStructures.RequireNullSafeObjectOperator" />
12-
<rule ref="SlevomatCodingStandard.Exceptions.RequireNonCapturingCatch" />
13-
<rule ref="SlevomatCodingStandard.Functions.RequireArrowFunction" />
14-
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInDeclaration" />
15-
<rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat">
16-
<properties>
17-
<property name="withSpaces" value="no" />
18-
<property name="shortNullable" value="no" />
19-
<property name="nullPosition" value="last" />
20-
</properties>
21-
</rule>
22-
2310
<file>src/</file>
2411
<file>tests/</file>
2512

src/Cdn77/ruleset.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
<rule ref="SlevomatCodingStandard.Classes.ConstantSpacing"/>
6262
<rule ref="SlevomatCodingStandard.Classes.ParentCallSpacing"/>
6363
<rule ref="SlevomatCodingStandard.Classes.PropertySpacing"/>
64+
<rule ref="SlevomatCodingStandard.Classes.RequireConstructorPropertyPromotion" />
6465
<rule ref="SlevomatCodingStandard.Classes.RequireSingleLineMethodSignature"/>
6566
<rule ref="SlevomatCodingStandard.Commenting.RequireOneLineDocComment"/>
6667
<rule ref="SlevomatCodingStandard.ControlStructures.JumpStatementsSpacing">
@@ -73,14 +74,26 @@
7374
</property>
7475
</properties>
7576
</rule>
77+
<rule ref="SlevomatCodingStandard.ControlStructures.RequireNullSafeObjectOperator" />
78+
<rule ref="SlevomatCodingStandard.Exceptions.RequireNonCapturingCatch" />
7679
<rule ref="SlevomatCodingStandard.Files.LineLength"/>
80+
<rule ref="SlevomatCodingStandard.Functions.RequireArrowFunction" />
81+
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInDeclaration" />
7782

7883
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing">
7984
<properties>
8085
<property name="spacesCountBeforeColon" value="1"/>
8186
</properties>
8287
</rule>
8388

89+
<rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat">
90+
<properties>
91+
<property name="withSpaces" value="no" />
92+
<property name="shortNullable" value="no" />
93+
<property name="nullPosition" value="last" />
94+
</properties>
95+
</rule>
96+
8497
<rule ref="Squiz.WhiteSpace.OperatorSpacing">
8598
<properties>
8699
<property name="ignoreNewlines" value="true"/>

0 commit comments

Comments
 (0)