Skip to content

Commit e969e9b

Browse files
TomasVotrubagithub-actions[bot]
authored andcommitted
[automated] Apply Coding Standard
1 parent 3cf1f51 commit e969e9b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

rules/EarlyReturn/Rector/If_/RemoveAlwaysElseRector.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ private function doesNotLastStatementBreakFlow(If_ | ElseIf_ | Else_ $node): boo
170170
$lastStmt = end($node->stmts);
171171

172172
if ($lastStmt instanceof If_ && $lastStmt->else instanceof Else_) {
173-
if ($this->doesNotLastStatementBreakFlow($lastStmt) || $this->doesNotLastStatementBreakFlow($lastStmt->else)) {
173+
if ($this->doesNotLastStatementBreakFlow($lastStmt) || $this->doesNotLastStatementBreakFlow(
174+
$lastStmt->else
175+
)) {
174176
return true;
175177
}
176178

0 commit comments

Comments
 (0)