phpcodesniffer
How useful is PHP CodeSniffer? Code Standards Enforcement in General? [closed]
Firstly, I’m the maintainer of PHP_CodeSniffer, so I’m clearly biased in this area. But I’ve also worked on some big code bases in my 10 years as a PHP dev, so I hope I can bring some concrete reasons to why coding standards are a good thing. I could write a blog series on this … Read more
Ignore code snippets in PHP_CodeSniffer
Yes it is possible with @codingStandardsIgnoreStart and @codingStandardsIgnoreEnd annotations <?php some_code(); // @codingStandardsIgnoreStart this_will_be_ignored(); // @codingStandardsIgnoreEnd some_other_code(); It is also described in the documentation.