File tree 1 file changed +11
-9
lines changed
1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 13
13
<!-- Include the PSR-12 (so PSR-1) standard without the file length limit -->
14
14
<rule ref =" PSR12" >
15
15
<exclude name =" Generic.Files.LineLength" />
16
-
17
- <!-- TODO -->
18
16
<exclude name =" PSR12.ControlStructures.ControlStructureSpacing" />
19
17
<exclude name =" PSR12.Operators.OperatorSpacing" />
20
- <exclude name =" Squiz.ControlStructures.ControlSignature" />
21
18
</rule >
19
+ <!-- Instead of PSR12.ControlStructures.ControlStructureSpacing -->
20
+ <rule ref =" PSR2.ControlStructures.ControlStructureSpacing" />
21
+ <!-- Instead of PSR12.Operators.OperatorSpacing-->
22
+ <rule ref =" Squiz.WhiteSpace.OperatorSpacing" >
23
+ <properties >
24
+ <property name =" ignoreNewlines" value =" true" />
25
+ </properties >
26
+ </rule >
27
+ <rule ref =" Squiz.WhiteSpace.LogicalOperatorSpacing" />
28
+
29
+ <!-- Change warning to error -->
22
30
<rule ref =" PSR2.ControlStructures.ElseIfDeclaration.NotAllowed" >
23
31
<type >error</type >
24
32
</rule >
65
73
<property name =" spacingAfterLast" value =" 0" />
66
74
</properties >
67
75
</rule >
68
- <rule ref =" Squiz.WhiteSpace.LogicalOperatorSpacing" />
69
76
<rule ref =" Squiz.WhiteSpace.MemberVarSpacing" >
70
77
<properties >
71
78
<property name =" spacingBeforeFirst" value =" 0" />
72
79
</properties >
73
80
</rule >
74
- <rule ref =" Squiz.WhiteSpace.OperatorSpacing" >
75
- <properties >
76
- <property name =" ignoreNewlines" value =" true" />
77
- </properties >
78
- </rule >
79
81
<rule ref =" Squiz.WhiteSpace.ObjectOperatorSpacing" >
80
82
<properties >
81
83
<property name =" ignoreNewlines" value =" true" />
You can’t perform that action at this time.
0 commit comments