yoastcs
yoastcs copied to clipboard
Yoast coding standards
## Sniff specification: ### Goal: Prevent functions from being declared with: * A `void` return in combination with another return type. (Forbidden) `* @return \My_Object|void` * Three or more different...
every `do_action` and `apply_filters` should be documented.
As previously discussed with @moorscode, this sniff should: 1. Check that only the new PHPCS annotations are used and forbid use of the old annotations. I.e. the following will no...
Filtering `SERVER_INPUT` variables using filter_input is disabled on some PHP configurations. (And fails silently)
As the `autoload` setting has been added in a later state, the argument is not required. Though this is a setting that should be set explicitly, as it impacts performance...
As we have the Options framework to handle options properly and apply defaults for options that aren't saved yet, we need to make sure this framework is always used instead...