protected function findCommentTagIndexes(File $file, $commentStart, $tagName)
    {
        $indexes = [];
        $tokens  = $file->getTokens();

        foreach ($tokens[$commentStart]['comment_tags'] as $index) {
            if ($tokens[$index]['content'] === $tagName) {
                $indexes[] = $index;
            }
        }

        return $indexes;
    }
protected function findCommentTagIndexes(File $file, $commentStart, $tagName)
    {
        $indexes = [];
        $tokens  = $file->getTokens();

        foreach ($tokens[$commentStart]['comment_tags'] as $index) {
            if ($tokens[$index]['content'] === $tagName) {
                $indexes[] = $index;
            }
        }

        return $indexes;
    }
protected function findCommentTagIndexes ( File $ file , $ commentStart , $ tagName ) { $ indexes = [ ] ; $ tokens = $ file -> getTokens ( ) ; foreach ( $ tokens [ $ commentStart ] [ 'comment_tags' ] as $ index ) { if ( $ tokens [ $ index ] [ 'content' ] === $ tagName ) { $ indexes [ ] = $ index ; } } return $ indexes ; }
Gets the indexes of a PHPDoc tag.

@param File   $file
@param int    $commentStart
@param string $tagName

@return array
Gets the indexes of a PHPDoc tag .