|
347 | 347 | <!-- The keyword elseif SHOULD be used instead of else if so that all control keywords look like single words. --> |
348 | 348 | <rule ref="PSR2.ControlStructures.ElseIfDeclaration"/> |
349 | 349 |
|
350 | | - <!-- 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. --> |
| 350 | + <!-- 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. --> |
351 | 351 | <!-- checked by PSR12.ControlStructures.ControlStructureSpacing --> |
352 | 352 | <!-- checked by PSR12.ControlStructures.BooleanOperatorPlacement --> |
353 | 353 | <!-- checked by Squiz.ControlStructures.ControlSignature --> |
| 354 | + <!--todo--> |
354 | 355 |
|
355 | | - <!-- 5.2 switch, case --> |
| 356 | + <!-- 5.2 switch, case, match --> |
356 | 357 |
|
357 | 358 | <!-- 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. --> |
358 | 359 | <rule ref="PSR2.ControlStructures.SwitchDeclaration"/> |
359 | 360 |
|
360 | | - <!-- 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. --> |
| 361 | + <!-- 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. --> |
361 | 362 | <!-- checked by PSR12.ControlStructures.ControlStructureSpacing --> |
362 | 363 | <!-- checked by PSR12.ControlStructures.BooleanOperatorPlacement --> |
363 | 364 | <!-- checked by Squiz.ControlStructures.ControlSignature --> |
| 365 | + <!--todo--> |
| 366 | + <!-- Similarly, a match expression looks like the following. Note the placement of parentheses, spaces, and braces. todo check and remove this line --> |
364 | 367 |
|
365 | 368 | <!-- 5.3.1 while --> |
366 | 369 |
|
367 | | - <!-- 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. --> |
| 370 | + <!-- 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. --> |
368 | 371 | <!-- checked by PSR12.ControlStructures.ControlStructureSpacing --> |
369 | 372 | <!-- checked by PSR12.ControlStructures.BooleanOperatorPlacement --> |
370 | 373 | <!-- checked by Squiz.ControlStructures.ControlSignature --> |
| 374 | + <!--todo--> |
371 | 375 |
|
372 | 376 | <!-- 5.3.2 do while --> |
373 | 377 |
|
374 | | - <!-- 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. --> |
| 378 | + <!-- 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. --> |
375 | 379 | <!-- checked by PSR12.ControlStructures.ControlStructureSpacing --> |
376 | 380 | <!-- checked by PSR12.ControlStructures.BooleanOperatorPlacement --> |
377 | 381 | <!-- checked by Squiz.ControlStructures.ControlSignature --> |
| 382 | + <!--todo--> |
378 | 383 |
|
379 | 384 | <!-- 5.4 for --> |
380 | 385 |
|
|
0 commit comments