private function raiseIndentationLevel(int $indentationLevel, array $tokensInLine): int
    {
        $raisingIndentation = [
            TokenInterface::TYPE_BRACE_OPEN,
        ];

        if ($this->indentConditions && $this->insideCondition === false) {
            $raisingIndentation[] = TokenInterface::TYPE_CONDITION;
        }

        foreach ($tokensInLine as $token) {
            if (in_array($token->getType(), $raisingIndentation)) {
                if ($token->getType() === TokenInterface::TYPE_CONDITION) {
                    $this->insideCondition = true;
                }
                return $indentationLevel + 1;
            }
        }

        return $indentationLevel;
    }
private function raiseIndentationLevel(int $indentationLevel, array $tokensInLine): int
    {
        $raisingIndentation = [
            TokenInterface::TYPE_BRACE_OPEN,
        ];

        if ($this->indentConditions && $this->insideCondition === false) {
            $raisingIndentation[] = TokenInterface::TYPE_CONDITION;
        }

        foreach ($tokensInLine as $token) {
            if (in_array($token->getType(), $raisingIndentation)) {
                if ($token->getType() === TokenInterface::TYPE_CONDITION) {
                    $this->insideCondition = true;
                }
                return $indentationLevel + 1;
            }
        }

        return $indentationLevel;
    }
private function raiseIndentationLevel ( int $ indentationLevel , array $ tokensInLine ) : int { $ raisingIndentation = [ TokenInterface :: TYPE_BRACE_OPEN , ] ; if ( $ this -> indentConditions && $ this -> insideCondition === false ) { $ raisingIndentation [ ] = TokenInterface :: TYPE_CONDITION ; } foreach ( $ tokensInLine as $ token ) { if ( in_array ( $ token -> getType ( ) , $ raisingIndentation ) ) { if ( $ token -> getType ( ) === TokenInterface :: TYPE_CONDITION ) { $ this -> insideCondition = true ; } return $ indentationLevel + 1 ; } } return $ indentationLevel ; }
Check whether indentation should be raised by one level, for current line.

Checks tokens in current line, and whether they will raise the indentation by one.

@param int $indentationLevel The current indentation level
@param TokenInterface[] $tokensInLine
@return int The new indentation level
Check whether indentation should be raised by one level for current line .