- See Project ruleset (
phpcs.xml
) - See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#ignoring-parts-of-a-file
Disable checking on one line
$foo = "bar"; // phpcs:ignore
Disable checking within a multiline block
// phpcs:disable
/*
$foo = 'bar';
*/
// phpcs:enable
Disable all rule checking from this point onwards.
// phpcs:disable