Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 397 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 397 Bytes

PHP Code Sniffing for WordPress

Requirements

Composer

Install

composer require ngearing/phpcs-wp:dev-master

How to use

From the root of your project directory run the following from your terminal:

vendor/bin/phpcs .

Or to fix errors

vendor/bin/phpcbf .

To check PHP compatibilty

vendor/bin/phpcs --runtime-set testVersion 7.0-