From e969e9be8e7d14f120e12c7ec5ceeb248bb1e961 Mon Sep 17 00:00:00 2001 From: TomasVotruba <924196+TomasVotruba@users.noreply.github.com> Date: Sun, 23 Nov 2025 00:41:20 +0000 Subject: [PATCH] [automated] Apply Coding Standard --- rules/EarlyReturn/Rector/If_/RemoveAlwaysElseRector.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rules/EarlyReturn/Rector/If_/RemoveAlwaysElseRector.php b/rules/EarlyReturn/Rector/If_/RemoveAlwaysElseRector.php index b977853751e..8f75aab7990 100644 --- a/rules/EarlyReturn/Rector/If_/RemoveAlwaysElseRector.php +++ b/rules/EarlyReturn/Rector/If_/RemoveAlwaysElseRector.php @@ -170,7 +170,9 @@ private function doesNotLastStatementBreakFlow(If_ | ElseIf_ | Else_ $node): boo $lastStmt = end($node->stmts); if ($lastStmt instanceof If_ && $lastStmt->else instanceof Else_) { - if ($this->doesNotLastStatementBreakFlow($lastStmt) || $this->doesNotLastStatementBreakFlow($lastStmt->else)) { + if ($this->doesNotLastStatementBreakFlow($lastStmt) || $this->doesNotLastStatementBreakFlow( + $lastStmt->else + )) { return true; }