src/Fixer/Whitespace/MethodChainingIndentationFixer.php
private function currentLineRequiresExtraIndentLevel(Tokens $tokens, $start, $end)
    {
        if ($tokens[$start + 1]->isGivenKind(T_OBJECT_OPERATOR)) {
            return false;
        }

        if ($tokens[$end]->isGivenKind(CT::T_BRACE_CLASS_INSTANTIATION_CLOSE)) {
            return true;
        }

        return
            !$tokens[$end]->equals(')')
            || $tokens->findBlockStart(Tokens::BLOCK_TYPE_PARENTHESIS_BRACE, $end) >= $start
        ;
    }
private function currentLineRequiresExtraIndentLevel(Tokens $tokens, $start, $end)
    {
        if ($tokens[$start + 1]->isGivenKind(T_OBJECT_OPERATOR)) {
            return false;
        }

        if ($tokens[$end]->isGivenKind(CT::T_BRACE_CLASS_INSTANTIATION_CLOSE)) {
            return true;
        }

        return
            !$tokens[$end]->equals(')')
            || $tokens->findBlockStart(Tokens::BLOCK_TYPE_PARENTHESIS_BRACE, $end) >= $start
        ;
    }
private function currentLineRequiresExtraIndentLevel ( Tokens $ tokens , $ start , $ end ) { if ( $ tokens [ $ start + 1 ] -> isGivenKind ( T_OBJECT_OPERATOR ) ) { return false ; } if ( $ tokens [ $ end ] -> isGivenKind ( CT :: T_BRACE_CLASS_INSTANTIATION_CLOSE ) ) { return true ; } return ! $ tokens [ $ end ] -> equals ( ')' ) || $ tokens -> findBlockStart ( Tokens :: BLOCK_TYPE_PARENTHESIS_BRACE , $ end ) >= $ start ; }
@param Tokens $tokens
@param int    $start  index of first meaningful token on previous line
@param int    $end    index of last token on previous line

@return bool
@param Tokens $tokens @param int $start index of first meaningful token on previous line @param int $end index of last token on previous line