src/Standards/BestIt/CodeSniffer/Helper/DocTagHelper.php
public function getTagTokens(): array
    {
        $iteratedPos = 0;
        $tagPositions = $this->getCommentStartToken()['comment_tags'];
        $tagTokens = [];

        /** @var int $tagPos */
        foreach ($tagPositions as $tagPos) {
            if ($tagPos >= $iteratedPos) {
                $tagTokens[$tagPos] = $this->tokens[$tagPos] + [
                    'contents' => $this->loadTagContentTokens($tagPos, $iteratedPos)
                ];
            }
        }

        return $tagTokens;
    }
public function getTagTokens(): array
    {
        $iteratedPos = 0;
        $tagPositions = $this->getCommentStartToken()['comment_tags'];
        $tagTokens = [];

        /** @var int $tagPos */
        foreach ($tagPositions as $tagPos) {
            if ($tagPos >= $iteratedPos) {
                $tagTokens[$tagPos] = $this->tokens[$tagPos] + [
                    'contents' => $this->loadTagContentTokens($tagPos, $iteratedPos)
                ];
            }
        }

        return $tagTokens;
    }
public function getTagTokens ( ) : array { $ iteratedPos = 0 ; $ tagPositions = $ this -> getCommentStartToken ( ) [ 'comment_tags' ] ; $ tagTokens = [ ] ; /** @var int $tagPos */ foreach ( $ tagPositions as $ tagPos ) { if ( $ tagPos >= $ iteratedPos ) { $ tagTokens [ $ tagPos ] = $ this -> tokens [ $ tagPos ] + [ 'contents' => $ this -> loadTagContentTokens ( $ tagPos , $ iteratedPos ) ] ; } } return $ tagTokens ; }
Returns array of all comment tag tokens.

@return array List of all comment tag tokens indexed by token position
Returns array of all comment tag tokens .