Fix PHPCS errors in Behat test files - #151
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe pull request reformats embedded PHP fixtures in ChangesCron fixture formatting
Estimated code review effort: 1 (Trivial) | ~3 minutes Merge Risk: ⚪ Minimal · up to This change only reformats Behat test fixtures without changing behavior, dependencies, or runtime configuration. No actionable merge-blocking risk remains beyond normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.) ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Pull request overview
This PR updates embedded PHP snippets inside the WP-CLI Behat feature tests to satisfy PHPCS/WP coding style requirements without changing test behavior. It keeps the test scenarios and assertions intact while making the inline fixtures more consistently formatted.
Changes:
- Reformatted
add_filter()blocks infeatures/cron.featureto multi-line style with consistent indentation. - Reformatted
add_action()/register_shutdown_function()fixtures and a small test class/function fixture infeatures/cron-event.feature. - Normalized array formatting in an
update_option( 'cron', ... )fixture to consistent indentation and trailing commas.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| features/cron.feature | PHPCS-oriented reformatting of embedded PHP fixtures used by cron-related scenarios. |
| features/cron-event.feature | PHPCS-oriented reformatting of embedded PHP fixtures for shutdown-function and action-listing scenarios. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Summary by CodeRabbit