Skip to content

Commit 70cca80

Browse files
authored
Merge pull request #12 from spaze/spaze/backed-enum-type-spacing
Add `SlevomatCodingStandard.Classes.BackedEnumTypeSpacing` sniff
2 parents 604c63f + 167e423 commit 70cca80

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"require": {
1313
"php": "^7.2 || ^8.0",
14-
"slevomat/coding-standard": "^8.1"
14+
"slevomat/coding-standard": "^8.2"
1515
},
1616
"autoload": {
1717
"psr-4": {"Spaze\\CodingStandard\\": "src"}

src/ruleset.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@
4040
<property name="linesCountAfterLastContent" value="0"/>
4141
</properties>
4242
</rule>
43+
<rule ref="SlevomatCodingStandard.Classes.BackedEnumTypeSpacing">
44+
<properties>
45+
<property name="spacesCountBeforeColon" value="0"/>
46+
<property name="spacesCountBeforeType" value="1"/>
47+
</properties>
48+
</rule>
4349
<rule ref="SlevomatCodingStandard.Classes.ClassStructure">
4450
<properties>
4551
<property name="groups" type="array">

0 commit comments

Comments
 (0)