Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shahmirj/0159880803f6f08907dd to your computer and use it in GitHub Desktop.
Save shahmirj/0159880803f6f08907dd to your computer and use it in GitHub Desktop.
My Custom Sniffer for Bug report
<?php
if (class_exists('PHP_CodeSniffer_CommentParser_ClassCommentParser', true) === false) {
$error = 'Class PHP_CodeSniffer_CommentParser_ClassCommentParser not found';
throw new PHP_CodeSniffer_Exception($error);
}
if (class_exists('Custom_Sniffs_Commenting_FileCommentSniff', true) === false) {
$error = 'Class Custom_Sniffs_Commenting_FileCommentSniff not found';
throw new PHP_CodeSniffer_Exception($error);
}
/**
* Parses and verifies the doc comments for classes.
*/
class Custom_Sniffs_Commenting_ClassCommentSniff extends Custom_Sniffs_Commenting_FileCommentSniff
{
/** .... **/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment