src/Standards/BestIt/CodeSniffer/Helper/DocTagHelper.php
public function getTagCounts(array $tagTokens): array
    {
        $tagCounts = [];

        foreach ($tagTokens as $tagToken) {
            $tagName = $tagToken['content'];

            if (!array_key_exists($tagName, $tagCounts)) {
                $tagCounts[$tagName] = 0;
            }

            ++$tagCounts[$tagName];
        }

        return $tagCounts;
    }
public function getTagCounts(array $tagTokens): array
    {
        $tagCounts = [];

        foreach ($tagTokens as $tagToken) {
            $tagName = $tagToken['content'];

            if (!array_key_exists($tagName, $tagCounts)) {
                $tagCounts[$tagName] = 0;
            }

            ++$tagCounts[$tagName];
        }

        return $tagCounts;
    }
public function getTagCounts ( array $ tagTokens ) : array { $ tagCounts = [ ] ; foreach ( $ tagTokens as $ tagToken ) { $ tagName = $ tagToken [ 'content' ] ; if ( ! array_key_exists ( $ tagName , $ tagCounts ) ) { $ tagCounts [ $ tagName ] = 0 ; } ++ $ tagCounts [ $ tagName ] ; } return $ tagCounts ; }
Returns the individual count of every tag.

@param array $tagTokens Array of tag tokens.

@return array List of comment tags with there count of the current comment
Returns the individual count of every tag .