src/Standards/BestIt/Sniffs/DocTags/AbstractRequiredTagsSniff.php
private function findTokensForTag(string $tagName): array
    {
        $allTags = $this->getAllTags();

        return array_filter($allTags, function (array $tag) use ($tagName): bool {
            return substr($tag['content'], 1) === $tagName;
        });
    }
private function findTokensForTag(string $tagName): array
    {
        $allTags = $this->getAllTags();

        return array_filter($allTags, function (array $tag) use ($tagName): bool {
            return substr($tag['content'], 1) === $tagName;
        });
    }
private function findTokensForTag ( string $ tagName ) : array { $ allTags = $ this -> getAllTags ( ) ; return array_filter ( $ allTags , function ( array $ tag ) use ( $ tagName ) : bool { return substr ( $ tag [ 'content' ] , 1 ) === $ tagName ; } ) ; }
Returns only the tokens with the given tag name.

@param string $tagName

@return array
Returns only the tokens with the given tag name .