src/Fixer/DoctrineAnnotation/DoctrineAnnotationIndentationFixer.php
private function isClosingLineWithMeaningfulContent(Tokens $tokens, $index)
    {
        while (isset($tokens[++$index])) {
            $token = $tokens[$index];
            if ($token->isType(DocLexer::T_NONE)) {
                if (false !== strpos($token->getContent(), "\n")) {
                    return false;
                }

                continue;
            }

            return !$token->isType([DocLexer::T_CLOSE_PARENTHESIS, DocLexer::T_CLOSE_CURLY_BRACES]);
        }

        return false;
    }
private function isClosingLineWithMeaningfulContent(Tokens $tokens, $index)
    {
        while (isset($tokens[++$index])) {
            $token = $tokens[$index];
            if ($token->isType(DocLexer::T_NONE)) {
                if (false !== strpos($token->getContent(), "\n")) {
                    return false;
                }

                continue;
            }

            return !$token->isType([DocLexer::T_CLOSE_PARENTHESIS, DocLexer::T_CLOSE_CURLY_BRACES]);
        }

        return false;
    }
private function isClosingLineWithMeaningfulContent ( Tokens $ tokens , $ index ) { while ( isset ( $ tokens [ ++ $ index ] ) ) { $ token = $ tokens [ $ index ] ; if ( $ token -> isType ( DocLexer :: T_NONE ) ) { if ( false !== strpos ( $ token -> getContent ( ) , "\n" ) ) { return false ; } continue ; } return ! $ token -> isType ( [ DocLexer :: T_CLOSE_PARENTHESIS , DocLexer :: T_CLOSE_CURLY_BRACES ] ) ; } return false ; }
@param Tokens $tokens
@param int    $index

@return bool
@param Tokens $tokens @param int $index