Skip to content

Commit be93173

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

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

PSR2R/ruleset.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@
184184
-->
185185

186186
<rule ref="PEAR.ControlStructures.ControlSignature"/>
187+
<rule ref="Squiz.ControlStructures.ControlSignature"/>
187188

188189
<rule ref="Squiz.ControlStructures.ForEachLoopDeclaration"/>
189190
<rule ref="Squiz.ControlStructures.LowercaseDeclaration"/>

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 204 sniffs
3+
The PSR2R standard contains 205 sniffs
44

55
Generic (24 sniffs)
66
-------------------
@@ -210,11 +210,12 @@ SlevomatCodingStandard (45 sniffs)
210210
- SlevomatCodingStandard.Variables.DuplicateAssignmentToVariable
211211
- SlevomatCodingStandard.Whitespaces.DuplicateSpaces
212212

213-
Squiz (20 sniffs)
213+
Squiz (21 sniffs)
214214
-----------------
215215
- Squiz.Arrays.ArrayBracketSpacing
216216
- Squiz.Classes.LowercaseClassKeywords
217217
- Squiz.Classes.ValidClassName
218+
- Squiz.ControlStructures.ControlSignature
218219
- Squiz.ControlStructures.ForEachLoopDeclaration
219220
- Squiz.ControlStructures.LowercaseDeclaration
220221
- Squiz.Functions.FunctionDeclaration

0 commit comments

Comments
 (0)