📜  从 vs 代码运行 phpcs - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:46.096000             🧑  作者: Mango

代码示例1
// 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]