composer require --dev d3r/standards
"phpcs_additional_args": {
"--standard": "vendor/d3r/standards/D3R-PHP.xml"
}
or use the stricter standard
"--standard": "vendor/d3r/standards/D3R-DEV-PHP.xml"
}
php_code_sniffer:
allowed_warnings: 0
allowed_errors: 0
standard: "vendor/d3r/standards/D3R-PHP.xml"
For your editor then we have a more strict standard so we can stage changes without breaking all builds Check these out into your /clients/custom folder.
git clone https://github.com/D3R/standards /clients/custom/standards
then point your editor's phpci to one of the files either /clients/custom/standards/D3R-DEV-PHP.xml
or /clients/custom/standards/D3R-PHP.xml