Skip to content

Commit 53ca1ec

Browse files
committed
Fix CS
1 parent bff8d67 commit 53ca1ec

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

PSR2R/ruleset.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,13 @@
4343

4444
<rule ref="SlevomatCodingStandard.Functions.ArrowFunctionDeclaration"/>
4545
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInCall"/>
46-
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInClosureUse"/>
46+
<rule ref="SlevomatCodingStandard.Functions.DisallowTrailingCommaInDeclaration"/>
47+
<rule ref="SlevomatCodingStandard.Functions.DisallowTrailingCommaInClosureUse"/>
48+
<rule ref="SlevomatCodingStandard.Functions.DisallowTrailingCommaInCall">
49+
<properties>
50+
<property name="onlySingleLine" type="boolean" value="true"/>
51+
</properties>
52+
</rule>
4753

4854
<rule ref="Spryker.Commenting.DisallowArrayTypeHintSyntax"/>
4955
<rule ref="Spryker.Commenting.TypeHint"/>

docs/sniffs.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PSR2R Code Sniffer
22

3-
The PSR2R standard contains 187 sniffs
3+
The PSR2R standard contains 188 sniffs
44

55
Generic (22 sniffs)
66
-------------------
@@ -105,7 +105,7 @@ PSR2R (44 sniffs)
105105
- PSR2R.WhiteSpace.TabIndent
106106
- PSR2R.WhiteSpace.UnaryOperatorSpacing
107107

108-
SlevomatCodingStandard (41 sniffs)
108+
SlevomatCodingStandard (42 sniffs)
109109
----------------------------------
110110
- SlevomatCodingStandard.Arrays.DisallowImplicitArrayCreation
111111
- SlevomatCodingStandard.Arrays.MultiLineArrayEndBracketPlacement
@@ -127,8 +127,9 @@ SlevomatCodingStandard (41 sniffs)
127127
- SlevomatCodingStandard.ControlStructures.RequireShortTernaryOperator
128128
- SlevomatCodingStandard.Exceptions.DeadCatch
129129
- SlevomatCodingStandard.Functions.ArrowFunctionDeclaration
130-
- SlevomatCodingStandard.Functions.RequireTrailingCommaInCall
131-
- SlevomatCodingStandard.Functions.RequireTrailingCommaInClosureUse
130+
- SlevomatCodingStandard.Functions.DisallowTrailingCommaInCall
131+
- SlevomatCodingStandard.Functions.DisallowTrailingCommaInClosureUse
132+
- SlevomatCodingStandard.Functions.DisallowTrailingCommaInDeclaration
132133
- SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses
133134
- SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly
134135
- SlevomatCodingStandard.Namespaces.RequireOneNamespaceInFile

0 commit comments

Comments
 (0)