function DocCommentSpacingSniff::isAnnotationMatched
2 calls to DocCommentSpacingSniff::isAnnotationMatched()
- DocCommentSpacingSniff::checkAnnotationsGroupsOrder in vendor/
slevomat/ coding-standard/ SlevomatCodingStandard/ Sniffs/ Commenting/ DocCommentSpacingSniff.php - *
- DocCommentSpacingSniff::sortAnnotationsToGroups in vendor/
slevomat/ coding-standard/ SlevomatCodingStandard/ Sniffs/ Commenting/ DocCommentSpacingSniff.php - *
File
-
vendor/
slevomat/ coding-standard/ SlevomatCodingStandard/ Sniffs/ Commenting/ DocCommentSpacingSniff.php, line 711
Class
Namespace
SlevomatCodingStandard\Sniffs\CommentingCode
private function isAnnotationMatched(Annotation $annotation, string $annotationName) : bool {
if ($annotation->getName() === $annotationName) {
return true;
}
return $this->isAnnotationNameInAnnotationNamespace($annotationName, $annotation->getName());
}