Have any question about the WordPress Coding Standards for PHP_CodeSniffer? We’ve answered the most common questions in the simplest way.

How can I find out which sniff has flagged an error?

To find out the sniff that has flagged an error, use the -s flag. It will show the sniff codes in the report.

What does the “Inline control structures are not allowed” error mean?

When writing conditionals, you should always use braces ({}). See Brace Style.