Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core: add sniffs to check class/constant modifier keyword order #2128

Merged

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Dec 7, 2022

Follow up on 2102

This adds two new sniffs to the Core ruleset to cover the keyword modifier order rules for class declarations and OO constant declarations.

Refs:
* https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#visibility-and-modifier-order
* WordPress/wpcs-docs 108
* PHPCSStandards/PHPCSExtra 142
* PHPCSStandards/PHPCSExtra 143
Copy link
Member

@GaryJones GaryJones left a comment

Choose a reason for hiding this comment

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

@GaryJones GaryJones merged commit d8a76b4 into develop Dec 7, 2022
@GaryJones GaryJones deleted the feature/core-add-sniffs-for-class-constant-modifier-order branch December 7, 2022 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants