File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/Standards/PSR12/Docs/ControlStructures Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 7
7
]]>
8
8
</standard >
9
9
<code_comparison >
10
- <code title =" Valid: Boolean operator between conditions at the beginning of the line." >
10
+ <code title =" Valid: Boolean operator between conditions consistently at the beginning of the line." >
11
11
<![CDATA[
12
12
if (
13
13
$expr1
20
20
}
21
21
]]>
22
22
</code >
23
- <code title =" Invalid: Boolean operators between conditions at the beginning and the end of the line." >
23
+ <code title =" Invalid: Mix of boolean operators at the beginning and the end of the line." >
24
24
<![CDATA[
25
25
if (
26
26
$expr1 &&
33
33
</code >
34
34
</code_comparison >
35
35
<code_comparison >
36
- <code title =" Valid: Boolean operator between conditions at the end of the line." >
36
+ <code title =" Valid: Boolean operator between conditions consistently at the end of the line." >
37
37
<![CDATA[
38
38
if (
39
- $expr1 &&
39
+ $expr1 ||
40
40
($expr2 || $expr3) &&
41
41
$expr4
42
42
) {
48
48
<![CDATA[
49
49
match (
50
50
$expr1
51
- && $expr2 &&
51
+ && $expr2 ||
52
52
$expr3
53
53
) {
54
54
// structure body.
You can’t perform that action at this time.
0 commit comments