wpcs-docs
wpcs-docs copied to clipboard
WordPress Coding Standards Docs
This PR depends on #105. Once that is merged, this PR should be rebased to the master branch. The PR adds rules about writing the magic constants and is the...
This PR depends on #104. Once that is merged, this PR should be rebased to the master branch. The PR adds rules about the spread operator and is the continuation...
This PR depends on #110. Once that is merged, this PR should be rebased to the master branch. The PR adds rules about the include/require statements and is the continuation...
This PR depends on #108. Once that is merged, this PR should be rebased to the master branch. The PR adds rules about the object instantiation and is the continuation...
This PR depends on #107. Once that is merged, this PR should be rebased to the master branch. The PR adds rules about the order of property and method modifiers...
The [Formatting SQL Statements](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#formatting-sql-statements) section currently includes a paragraph on [string and integer placeholders](https://github.com/WordPress/wpcs-docs/blob/dff1d8622d201bf1d9bc3b9896f783a44778b0cc/wordpress-coding-standards/php.md?plain=1#L465): > `%s` is used for string placeholders and `%d` is used for integer placeholders. Note that...
Currently, the main branch of this repo is named `master` and all the other projects are using `trunk` or `main` as the main branches instead of `master`. We should do...
Idea that Juliette sugessted in the [PR](https://github.com/WordPress/wpcs-docs/pull/102#discussion_r955986866) was to standardize the order of certain parts of a rule in the handbook: 1. CS rules 2. Possible code samples 3. Usage...
We have a section in the PHP coding standards called `Indentation`:  However, the first "exception" to it (second sentence) is about mid-line alignment. Would...
The Opening and Closing PHP Tags Section - Specifically the case of single lines PHP inside HTML blocks was unclear and not full. Please see the above-proposed suggestion for edit...