Skip to content

Commit

Permalink
Merge pull request #185 from gmponos/insensitive_inheritdoc
Browse files Browse the repository at this point in the history
Ignore the inheritDoc tag using insensitive case
  • Loading branch information
markstory committed Jan 28, 2017
2 parents 8363417 + 89b344b commit 12b4b41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CakePHP/Sniffs/Commenting/FunctionCommentSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected function isInheritDoc(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
$start = $phpcsFile->findPrevious(T_DOC_COMMENT_OPEN_TAG, $stackPtr - 1);
$end = $phpcsFile->findNext(T_DOC_COMMENT_CLOSE_TAG, $start);
$content = $phpcsFile->getTokensAsString($start, ($end - $start));
return preg_match('#{@inheritDoc}#', $content) === 1;
return preg_match('/{@inheritDoc}/i', $content) === 1;
} // end isInheritDoc()

/**
Expand Down

0 comments on commit 12b4b41

Please sign in to comment.