src/Tokenizer/Analyzer/NamespaceUsesAnalyzer.php
private function getDeclarations(Tokens $tokens, array $useIndexes)
    {
        $uses = [];

        foreach ($useIndexes as $index) {
            $endIndex = $tokens->getNextTokenOfKind($index, [';', [T_CLOSE_TAG]]);
            $analysis = $this->parseDeclaration($tokens, $index, $endIndex);
            if ($analysis) {
                $uses[] = $analysis;
            }
        }

        return $uses;
    }
private function getDeclarations(Tokens $tokens, array $useIndexes)
    {
        $uses = [];

        foreach ($useIndexes as $index) {
            $endIndex = $tokens->getNextTokenOfKind($index, [';', [T_CLOSE_TAG]]);
            $analysis = $this->parseDeclaration($tokens, $index, $endIndex);
            if ($analysis) {
                $uses[] = $analysis;
            }
        }

        return $uses;
    }
private function getDeclarations ( Tokens $ tokens , array $ useIndexes ) { $ uses = [ ] ; foreach ( $ useIndexes as $ index ) { $ endIndex = $ tokens -> getNextTokenOfKind ( $ index , [ ';' , [ T_CLOSE_TAG ] ] ) ; $ analysis = $ this -> parseDeclaration ( $ tokens , $ index , $ endIndex ) ; if ( $ analysis ) { $ uses [ ] = $ analysis ; } } return $ uses ; }
@param Tokens $tokens
@param array  $useIndexes

@return NamespaceUseAnalysis[]
@param Tokens $tokens @param array $useIndexes