File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
src/Standards/Generic/Tests/CodeAnalysis Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ function_call();
19
19
20
20
?>
21
21
<input name="<?php ; something_else (); ?> " />
22
- <input name="<?php something_else (); ; ?> " />
22
+ <input name="<?php something_else (); ; ; ?> " />
23
23
24
24
/*
25
25
* Test empty statement: no code between PHP open and close tag.
@@ -42,7 +42,7 @@ function_call();
42
42
-->
43
43
<?php ; ?>
44
44
45
- <input name="<?php ; ?> " /> <!-- Bad. -->
45
+ <input name="<?php ;; ?> " /> <!-- Bad. -->
46
46
47
47
<!-- Tests with short open echo tag. -->
48
48
<input name="<?= 'some text ' ?> " /> <!-- OK. -->
@@ -53,7 +53,7 @@ function_call();
53
53
// Guard against false positives for two consecutive semicolons in a for statement.
54
54
for ( $ i = 0 ; ; $ i ++ ) {}
55
55
56
- // Test for useless semicolons
56
+ // Test for useless semicolons.
57
57
for ( $ i = 0 ; ; $ i ++ ) {};
58
58
59
59
if (true ) {};
@@ -80,7 +80,7 @@ if ($foo) {
80
80
;
81
81
}
82
82
83
- // Do not remove semicolon after match
83
+ // Do not remove semicolon after match.
84
84
$ c = match ($ a ) {
85
85
1 => true ,
86
86
};
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ function_call();
48
48
// Guard against false positives for two consecutive semicolons in a for statement.
49
49
for ( $i = 0; ; $i++ ) {}
50
50
51
- // Test for useless semicolons
51
+ // Test for useless semicolons.
52
52
for ( $i = 0; ; $i++ ) {}
53
53
54
54
if (true) {}
@@ -74,7 +74,7 @@ echo $a{0};
74
74
if ($foo) {
75
75
}
76
76
77
- // Do not remove semicolon after match
77
+ // Do not remove semicolon after match.
78
78
$c = match ($a) {
79
79
1 => true,
80
80
};
Original file line number Diff line number Diff line change @@ -76,11 +76,11 @@ public function getWarningList($testFile='')
76
76
15 => 1 ,
77
77
18 => 1 ,
78
78
21 => 1 ,
79
- 22 => 1 ,
79
+ 22 => 2 ,
80
80
31 => 1 ,
81
81
33 => 1 ,
82
82
43 => 1 ,
83
- 45 => 1 ,
83
+ 45 => 2 ,
84
84
49 => 1 ,
85
85
50 => 1 ,
86
86
57 => 1 ,
You can’t perform that action at this time.
0 commit comments