Update sniff to catch more variables declared before returns where th…#2824
Conversation
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThis PR systematically relocates variable initializations throughout the codebase to occur after early returns, guards, or checks. It also significantly enhances a PHPCS sniff to detect and enforce this pattern across multiple early-return blocks, enabling automated code quality improvements. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
✨ Finishing touches
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (24)
✏️ Tip: You can disable this entire section by setting 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 |
…ey are unused
Summary by CodeRabbit
Refactor
Chores
✏️ Tip: You can customize this high-level summary in your review settings.