📅  最后修改于: 2022-03-11 14:54:26.581000             🧑  作者: Mango
// Use PHPCS with WordPress PhpCs
// Install This and follow the doc -
// https://github.com/tareq1988/wp-php-cs-fixer
// Check phpcs error and warning
vendor/bin/phpcs [relative file path name]
// Example for a specific file phpcs check
vendor/bin/phpcs modules/subscription/includes/classes/class-dps-paypal-standard-subscriptions.php
// Check phpcs and apply fix for error with cross marks.
vendor/bin/phpcbf [relative file path name]