Skip to content

Commit 64d199b

Browse files
committed
Update phpcs rules
1 parent 96add03 commit 64d199b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/base-php-config/phpcs_codestyle.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
</properties>
2424
</rule>
2525

26+
<!-- SlevomatCodingStandard -->
2627
<rule ref="SlevomatCodingStandard.Files.LineLength">
2728
<properties>
2829
<property name="lineLengthLimit" value="180"/>
@@ -39,6 +40,7 @@
3940

4041
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInCall" />
4142
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInDeclaration" />
43+
<rule ref="SlevomatCodingStandard.Functions.ArrowFunctionDeclaration" />
4244
<rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat">
4345
<properties>
4446
<property name="withSpaces" value="no"/>
@@ -88,6 +90,7 @@
8890
<exclude name="Squiz.WhiteSpace.OperatorSpacing.SpacingBefore"/>
8991
</rule>
9092
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"/>
93+
9194
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
9295
<rule ref="Generic.ControlStructures.DisallowYodaConditions"/>
9396
<rule ref="Generic.ControlStructures.InlineControlStructure"/>
@@ -98,6 +101,7 @@
98101
<rule ref="Generic.PHP.LowerCaseKeyword"/>
99102
<rule ref="Generic.Strings.UnnecessaryStringConcat"/>
100103
<rule ref="Generic.WhiteSpace.IncrementDecrementSpacing"/>
104+
101105
<rule ref="PSR2.Classes.PropertyDeclaration"/>
102106
<rule ref="PSR2.Methods.MethodDeclaration"/>
103107
<rule ref="PSR2.Files.EndFileNewline"/>

0 commit comments

Comments
 (0)