mirror of
https://gh.wpcy.net/https://github.com/WordPress/WordPress-Coding-Standards.git
synced 2026-05-21 02:25:25 +08:00
> 1. There should be no space between `::class` and the preceding class name it applies to. > 2. There should be no space between the double colon and the `class` keyword. > 3. The `class` keyword should be in lowercase. The first two rules are covered via the new `WordPress.WhiteSpace.ObjectOperatorSpacing` sniff. The last rule via a new sniff from PHPCSExtra. Refs: * https://make.wordpress.org/core/2020/03/20/updating-the-coding-standards-for-modern-php/ - `::class` constant section * https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#magic-constants * WordPress/wpcs-docs 113 * WordPress/WordPress-Coding-Standards 1115 * WordPress/WordPress-Coding-Standards 1116 * WordPress/WordPress-Coding-Standards 2095 * PHPCSStandards/PHPCSExtra 72 |
||
|---|---|---|
| .. | ||
| ruleset.xml | ||