File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ In Sniff/WhiteSpace/FunctionalClosingBraceSniff:
58
58
59
59
In Sniff/Commenting/FunctionCommentSniff:
60
60
- check for 1 blank line above a docblock
61
- - don't check docblocks for test and setUp methods (PHPunit, would be blank)
61
+ - don't check docblocks for test, setUp and tearDown methods (PHPunit, would be blank)
62
62
- do check protected and private methods for docblocks
63
63
64
64
In Sniff/NamingConventions/ValidClassNameSniff
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
67
67
68
68
$ name = $ phpcsFile ->getDeclarationName ($ stackPtr );
69
69
70
- $ commentRequired = strpos ($ name , 'test ' ) !== 0 && $ name !== 'setUp ' ;
70
+ $ commentRequired = strpos ($ name , 'test ' ) !== 0 && $ name !== 'setUp ' && $ name !== ' tearDown ' ;
71
71
72
72
if (($ code === T_COMMENT && !$ commentRequired )
73
73
|| ($ code !== T_DOC_COMMENT && !$ commentRequired )
You can’t perform that action at this time.
0 commit comments