忽略PHP_CodeSniffer中的代码片段
当用PHP_CodeSniffer分析时,可以忽略来自php文件的一些代码部分? 
是的,可以使用@codingStandardsIgnoreStart和@codingStandardsIgnoreEnd注解
 <?php some_code(); // @codingStandardsIgnoreStart this_will_be_ignored(); // @codingStandardsIgnoreEnd some_other_code(); 
这也在文档中描述。
 您可以使用组合: @codingStandardsIgnoreStart和@codingStandardsIgnoreEnd或者您可以使用@codingStandardsIgnoreLine 。 
例:
 <?php command1(); // @codingStandardsIgnoreStart command2(); // this line will be ignored by Codesniffer command3(); // this one too command4(); // this one too // @codingStandardsIgnoreEnd command6(); // @codingStandardsIgnoreLine command7(); // this line will be ignored by Codesniffer