Skip to content

Commit f1b421e

Browse files
committed
Added more annotations (ref #750)
1 parent cdcc622 commit f1b421e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/Standards/PSR12/ruleset.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,25 +251,40 @@
251251
<rule ref="PSR2.ControlStructures.ElseIfDeclaration"/>
252252

253253
<!-- Expressions in parentheses MAY be split across multiple lines, where each subsequent line is indented at least once. When doing so, the first condition MUST be on the next line. The closing parenthesis and opening brace MUST be placed together on their own line with one space between them. Boolean operators between conditions MUST always be at the beginning or at the end of the line, not a mix of both. -->
254+
<!-- checked by PSR12.ControlStructures.ControlStructureSpacing -->
255+
<!-- checked by PSR12.ControlStructures.BooleanOperatorPlacement -->
256+
<!-- checked by Squiz.ControlStructures.ControlSignature -->
254257

255258
<!-- 5.2 switch, case -->
256259

257260
<!-- The case statement MUST be indented once from switch, and the break keyword (or other terminating keywords) MUST be indented at the same level as the case body. There MUST be a comment such as // no break when fall-through is intentional in a non-empty case body. -->
258261
<rule ref="PSR2.ControlStructures.SwitchDeclaration"/>
259262

260263
<!-- Expressions in parentheses MAY be split across multiple lines, where each subsequent line is indented at least once. When doing so, the first condition MUST be on the next line. The closing parenthesis and opening brace MUST be placed together on their own line with one space between them. Boolean operators between conditions MUST always be at the beginning or at the end of the line, not a mix of both. -->
264+
<!-- checked by PSR12.ControlStructures.ControlStructureSpacing -->
265+
<!-- checked by PSR12.ControlStructures.BooleanOperatorPlacement -->
266+
<!-- checked by Squiz.ControlStructures.ControlSignature -->
261267

262268
<!-- 5.3.1 while -->
263269

264270
<!-- Expressions in parentheses MAY be split across multiple lines, where each subsequent line is indented at least once. When doing so, the first condition MUST be on the next line. The closing parenthesis and opening brace MUST be placed together on their own line with one space between them. Boolean operators between conditions MUST always be at the beginning or at the end of the line, not a mix of both. -->
271+
<!-- checked by PSR12.ControlStructures.ControlStructureSpacing -->
272+
<!-- checked by PSR12.ControlStructures.BooleanOperatorPlacement -->
273+
<!-- checked by Squiz.ControlStructures.ControlSignature -->
265274

266275
<!-- 5.3.2 do while -->
267276

268277
<!-- Expressions in parentheses MAY be split across multiple lines, where each subsequent line is indented at least once. When doing so, the first condition MUST be on the next line. Boolean operators between conditions MUST always be at the beginning or at the end of the line, not a mix of both. -->
278+
<!-- checked by PSR12.ControlStructures.ControlStructureSpacing -->
279+
<!-- checked by PSR12.ControlStructures.BooleanOperatorPlacement -->
280+
<!-- checked by Squiz.ControlStructures.ControlSignature -->
269281

270282
<!-- 5.4 for -->
271283

272284
<!-- Expressions in parentheses MAY be split across multiple lines, where each subsequent line is indented at least once. When doing so, the first expression MUST be on the next line. The closing parenthesis and opening brace MUST be placed together on their own line with one space between them. -->
285+
<!-- checked by PSR12.ControlStructures.ControlStructureSpacing -->
286+
<!-- checked by PSR12.ControlStructures.BooleanOperatorPlacement -->
287+
<!-- checked by Squiz.ControlStructures.ControlSignature -->
273288

274289
<!-- 5.5 foreach -->
275290

0 commit comments

Comments
 (0)