Skip to content

Commit 6ea57b8

Browse files
authored
[automated] Apply Coding Standard (#7660)
Co-authored-by: TomasVotruba <[email protected]>
1 parent 3cf1f51 commit 6ea57b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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)