File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -57,18 +57,21 @@ public function benchToPHPArray(): void
57
57
public function benchIteration (): void
58
58
{
59
59
// phpcs:ignore Generic.CodeAnalysis.EmptyStatement.DetectedForeach
60
+ // phpcs:ignore Generic.ControlStructures.InlineControlStructure.NotAllowed
60
61
foreach (self ::$ document as $ key => $ value );
61
62
}
62
63
63
64
public function benchIterationAsArray (): void
64
65
{
65
66
// phpcs:ignore Generic.CodeAnalysis.EmptyStatement.DetectedForeach
67
+ // phpcs:ignore Generic.ControlStructures.InlineControlStructure.NotAllowed
66
68
foreach (self ::$ document ->toPHP (['root ' => 'array ' ]) as $ key => $ value );
67
69
}
68
70
69
71
public function benchIterationAsObject (): void
70
72
{
71
73
// phpcs:ignore Generic.CodeAnalysis.EmptyStatement.DetectedForeach
74
+ // phpcs:ignore Generic.ControlStructures.InlineControlStructure.NotAllowed
72
75
foreach (self ::$ document ->toPHP () as $ key => $ value );
73
76
}
74
77
}
Original file line number Diff line number Diff line change @@ -58,18 +58,21 @@ public function benchToPHPArray(): void
58
58
public function benchIteration (): void
59
59
{
60
60
// phpcs:ignore Generic.CodeAnalysis.EmptyStatement.DetectedForeach
61
+ // phpcs:ignore Generic.ControlStructures.InlineControlStructure.NotAllowed
61
62
foreach (self ::$ array as $ key => $ value );
62
63
}
63
64
64
65
public function benchIterationAfterIteratorToArray (): void
65
66
{
66
67
// phpcs:ignore Generic.CodeAnalysis.EmptyStatement.DetectedForeach
68
+ // phpcs:ignore Generic.ControlStructures.InlineControlStructure.NotAllowed
67
69
foreach (iterator_to_array (self ::$ array ) as $ key => $ value );
68
70
}
69
71
70
72
public function benchIterationAsArray (): void
71
73
{
72
74
// phpcs:ignore Generic.CodeAnalysis.EmptyStatement.DetectedForeach
75
+ // phpcs:ignore Generic.ControlStructures.InlineControlStructure.NotAllowed
73
76
foreach (self ::$ array ->toPHP () as $ key => $ value );
74
77
}
75
78
}
You can’t perform that action at this time.
0 commit comments