Skip to content

Commit 61d68c8

Browse files
authored
Rename parameter variable to nextCase on RemoveDuplicatedCaseInSwitchRector (#5244)
1 parent 42b697f commit 61d68c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rules/DeadCode/Rector/Switch_/RemoveDuplicatedCaseInSwitchRector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ private function removeDuplicatedCases(Switch_ $switch): void
131131
}
132132
}
133133

134-
private function areSwitchStmtsEqualsAndWithBreak(Case_ $currentCase, Case_ $nextOrPrevCase): bool
134+
private function areSwitchStmtsEqualsAndWithBreak(Case_ $currentCase, Case_ $nextCase): bool
135135
{
136-
if (! $this->nodeComparator->areNodesEqual($currentCase->stmts, $nextOrPrevCase->stmts)) {
136+
if (! $this->nodeComparator->areNodesEqual($currentCase->stmts, $nextCase->stmts)) {
137137
return false;
138138
}
139139

0 commit comments

Comments
 (0)