A lightweight phpcs.xml configuration extending "WordPress-Extra" with some preferences (short arrays, no Yoda conditions, flexible file naming, etc).
This ruleset requires the WordPress Coding Standards (WPCS).
- Install the WPCS package.
- Place the
phpcs.xmlfile in the project root.
./vendor/bin/phpcs ../vendor/bin/phpcbf .This is free and unencumbered software released into the public domain. See LICENSE for details.