Created
December 9, 2014 21:14
-
-
Save shahmirj/0159880803f6f08907dd to your computer and use it in GitHub Desktop.
My Custom Sniffer for Bug report
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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