Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DocCommentSpacingSniff.php

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

DocCommentSpacingSniff

Namespace

SlevomatCodingStandard\Sniffs\Commenting

Code

private function isAnnotationMatched(Annotation $annotation, string $annotationName) : bool {
    if ($annotation->getName() === $annotationName) {
        return true;
    }
    return $this->isAnnotationNameInAnnotationNamespace($annotationName, $annotation->getName());
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal