private function getClassyInheritanceInfo(Tokens $tokens, $startIndex, $label)
    {
        $implementsInfo = ['start' => $startIndex, $label => 1, 'multiLine' => false];
        ++$startIndex;
        $endIndex = $tokens->getNextTokenOfKind($startIndex, ['{', [T_IMPLEMENTS], [T_EXTENDS]]);
        $endIndex = $tokens[$endIndex]->equals('{') ? $tokens->getPrevNonWhitespace($endIndex) : $endIndex;
        for ($i = $startIndex; $i < $endIndex; ++$i) {
            if ($tokens[$i]->equals(',')) {
                ++$implementsInfo[$label];

                continue;
            }

            if (!$implementsInfo['multiLine'] && false !== strpos($tokens[$i]->getContent(), "\n")) {
                $implementsInfo['multiLine'] = true;
            }
        }

        return $implementsInfo;
    }
private function getClassyInheritanceInfo(Tokens $tokens, $startIndex, $label)
    {
        $implementsInfo = ['start' => $startIndex, $label => 1, 'multiLine' => false];
        ++$startIndex;
        $endIndex = $tokens->getNextTokenOfKind($startIndex, ['{', [T_IMPLEMENTS], [T_EXTENDS]]);
        $endIndex = $tokens[$endIndex]->equals('{') ? $tokens->getPrevNonWhitespace($endIndex) : $endIndex;
        for ($i = $startIndex; $i < $endIndex; ++$i) {
            if ($tokens[$i]->equals(',')) {
                ++$implementsInfo[$label];

                continue;
            }

            if (!$implementsInfo['multiLine'] && false !== strpos($tokens[$i]->getContent(), "\n")) {
                $implementsInfo['multiLine'] = true;
            }
        }

        return $implementsInfo;
    }
private function getClassyInheritanceInfo ( Tokens $ tokens , $ startIndex , $ label ) { $ implementsInfo = [ 'start' => $ startIndex , $ label => 1 , 'multiLine' => false ] ; ++ $ startIndex ; $ endIndex = $ tokens -> getNextTokenOfKind ( $ startIndex , [ '{' , [ T_IMPLEMENTS ] , [ T_EXTENDS ] ] ) ; $ endIndex = $ tokens [ $ endIndex ] -> equals ( '{' ) ? $ tokens -> getPrevNonWhitespace ( $ endIndex ) : $ endIndex ; for ( $ i = $ startIndex ; $ i < $ endIndex ; ++ $ i ) { if ( $ tokens [ $ i ] -> equals ( ',' ) ) { ++ $ implementsInfo [ $ label ] ; continue ; } if ( ! $ implementsInfo [ 'multiLine' ] && false !== strpos ( $ tokens [ $ i ] -> getContent ( ) , "\n" ) ) { $ implementsInfo [ 'multiLine' ] = true ; } } return $ implementsInfo ; }
@param Tokens $tokens
@param int    $startIndex
@param string $label

@return array
@param Tokens $tokens @param int $startIndex @param string $label