Skip to content

Commit cef6b91

Browse files
committed
Add missing ControlStructures sniff.
1 parent be93173 commit cef6b91

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

PSR2R/ruleset.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@
147147

148148
<rule ref="PhpCollective.ControlStructures.NoInlineAssignment"/>
149149
<rule ref="PhpCollective.ControlStructures.ConditionalExpressionOrder"/>
150+
<rule ref="PhpCollective.ControlStructures.ControlStructureEmptyStatement"/>
150151

151152
<rule ref="PhpCollective.Arrays.ArrayBracketSpacing"/>
152153
<rule ref="PhpCollective.Formatting.ArrayDeclaration"/>

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
],
1414
"require": {
1515
"php": ">=8.1",
16-
"php-collective/code-sniffer": "^0.4",
16+
"php-collective/code-sniffer": "^0.4.1",
1717
"squizlabs/php_codesniffer": "^4.0.0"
1818
},
1919
"require-dev": {

docs/sniffs.md

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

3-
The PSR2R standard contains 205 sniffs
3+
The PSR2R standard contains 206 sniffs
44

55
Generic (24 sniffs)
66
-------------------
@@ -43,7 +43,7 @@ PEAR (3 sniffs)
4343
- PEAR.Functions.ValidDefaultValue
4444
- PEAR.NamingConventions.ValidClassName
4545

46-
PhpCollective (46 sniffs)
46+
PhpCollective (47 sniffs)
4747
-------------------------
4848
- PhpCollective.Arrays.ArrayBracketSpacing
4949
- PhpCollective.Classes.ClassFileName
@@ -75,6 +75,7 @@ PhpCollective (46 sniffs)
7575
- PhpCollective.Commenting.InlineDocBlock
7676
- PhpCollective.Commenting.TypeHint
7777
- PhpCollective.ControlStructures.ConditionalExpressionOrder
78+
- PhpCollective.ControlStructures.ControlStructureEmptyStatement
7879
- PhpCollective.ControlStructures.NoInlineAssignment
7980
- PhpCollective.Formatting.ArrayDeclaration
8081
- PhpCollective.PHP.DisallowTrailingCommaInSingleLine

0 commit comments

Comments
 (0)