Skip to content

return文の後の不要なbreak文を削除#99

Open
dk-umebius wants to merge 1 commit intoEC-CUBE:4.2from
U-Mebius:fix/unreachable_break_statement
Open

return文の後の不要なbreak文を削除#99
dk-umebius wants to merge 1 commit intoEC-CUBE:4.2from
U-Mebius:fix/unreachable_break_statement

Conversation

@dk-umebius
Copy link

return文の後にあるため到達不可能なbreak文を削除

  • 修正箇所: Controller/ProductReviewController.php:110
  • return文でメソッドを抜けるため、その後のbreak文は実行されない

コードの可読性とメンテナンス性の向上

Fixes #97

return文の後にあるため到達不可能なbreak文を削除

- 修正箇所: Controller/ProductReviewController.php:110
- return文でメソッドを抜けるため、その後のbreak文は実行されない

コードの可読性とメンテナンス性の向上

Fixes EC-CUBE#97
Copilot AI review requested due to automatic review settings January 21, 2026 06:44
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes an unreachable break; statement that appeared after a return statement in the ProductReviewController. The issue was identified in #97 where the break statement at line 110 could never be executed because the return on line 109 exits the method entirely. This change improves code maintainability by removing dead code.

Changes:

  • Removed unreachable break; statement after a return statement in the 'complete' case of the switch statement

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ProductReviewControllerに意味のないbreak;が残っている

1 participant