Skip to content

Commit e5b9645

Browse files
authored
Add new rules (#60)
- SingleLineArrayWhitespace - RequireTrailingCommaInCall - RequireTrailingCommaInDeclaration
1 parent e6e0ee2 commit e5b9645

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

phpcs/ruleset.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
<element key="sizeof" value="count"/>
5050
<element key="delete" value="unset"/>
5151
<element key="print_r" value="return"/>
52-
<element key="eval" value="none"/>
53-
<element key="is_null" value="none"/>
52+
<element key="eval" value="null"/>
53+
<element key="is_null" value="null"/>
5454
</property>
5555
</properties>
5656
</rule>
@@ -123,6 +123,7 @@
123123
</rule>
124124

125125
<config name="installed_paths" value="../../slevomat/coding-standard"/>
126+
<rule ref="SlevomatCodingStandard.Arrays.SingleLineArrayWhitespace"/>
126127
<rule ref="SlevomatCodingStandard.Commenting.RequireOneLinePropertyDocComment.MultiLinePropertyComment"/>
127128
<rule ref="SlevomatCodingStandard.Commenting.UselessFunctionDocComment.UselessDocComment"/>
128129
<rule ref="SlevomatCodingStandard.ControlStructures.BlockControlStructureSpacing">
@@ -139,6 +140,8 @@
139140
</properties>
140141
</rule>
141142
<rule ref="SlevomatCodingStandard.ControlStructures.JumpStatementsSpacing"/>
143+
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInCall" />
144+
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInDeclaration"/>
142145
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses"/>
143146
<rule ref="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly"/>
144147
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses"/>

0 commit comments

Comments
 (0)