New sniff to change if else in loop to continue when if condition is …#2833
Conversation
📝 WalkthroughWalkthroughAdds a new PHP_CodeSniffer sniff that flips end-of-loop if/else blocks to use negated conditions with early continue, and applies this control-flow inversion across several helpers, models, and controllers to simplify first-occurrence handling and reduce nesting. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…larger than else
Summary by CodeRabbit
Refactor
Chores
✏️ Tip: You can customize this high-level summary in your review settings.