private function preIndent()
    {
        $prev = $this->tokens->getId($this->tokens->key() - 1);

        switch ($this->tokens->getId()) {
            case DocLexer::T_AT:
                if ($prev
                    && (DocLexer::T_COLON !== $prev)
                    && (DocLexer::T_COMMA !== $prev)
                    && (DocLexer::T_EQUALS !== $prev)
                    && (DocLexer::T_OPEN_CURLY_BRACES !== $prev)
                    && (DocLexer::T_OPEN_PARENTHESIS !== $prev)) {
                    $this->indent(true);
                }

                break;
            case DocLexer::T_CLOSE_CURLY_BRACES:
                $this->level--;

                if (DocLexer::T_OPEN_CURLY_BRACES !== $prev) {
                    $this->indent();
                }

                break;
            case DocLexer::T_CLOSE_PARENTHESIS:
                $this->level--;

                if (DocLexer::T_OPEN_PARENTHESIS !== $prev) {
                    $this->indent();
                }

                break;
        }
    }
private function preIndent()
    {
        $prev = $this->tokens->getId($this->tokens->key() - 1);

        switch ($this->tokens->getId()) {
            case DocLexer::T_AT:
                if ($prev
                    && (DocLexer::T_COLON !== $prev)
                    && (DocLexer::T_COMMA !== $prev)
                    && (DocLexer::T_EQUALS !== $prev)
                    && (DocLexer::T_OPEN_CURLY_BRACES !== $prev)
                    && (DocLexer::T_OPEN_PARENTHESIS !== $prev)) {
                    $this->indent(true);
                }

                break;
            case DocLexer::T_CLOSE_CURLY_BRACES:
                $this->level--;

                if (DocLexer::T_OPEN_CURLY_BRACES !== $prev) {
                    $this->indent();
                }

                break;
            case DocLexer::T_CLOSE_PARENTHESIS:
                $this->level--;

                if (DocLexer::T_OPEN_PARENTHESIS !== $prev) {
                    $this->indent();
                }

                break;
        }
    }
private function preIndent ( ) { $ prev = $ this -> tokens -> getId ( $ this -> tokens -> key ( ) - 1 ) ; switch ( $ this -> tokens -> getId ( ) ) { case DocLexer :: T_AT : if ( $ prev && ( DocLexer :: T_COLON !== $ prev ) && ( DocLexer :: T_COMMA !== $ prev ) && ( DocLexer :: T_EQUALS !== $ prev ) && ( DocLexer :: T_OPEN_CURLY_BRACES !== $ prev ) && ( DocLexer :: T_OPEN_PARENTHESIS !== $ prev ) ) { $ this -> indent ( true ) ; } break ; case DocLexer :: T_CLOSE_CURLY_BRACES : $ this -> level -- ; if ( DocLexer :: T_OPEN_CURLY_BRACES !== $ prev ) { $ this -> indent ( ) ; } break ; case DocLexer :: T_CLOSE_PARENTHESIS : $ this -> level -- ; if ( DocLexer :: T_OPEN_PARENTHESIS !== $ prev ) { $ this -> indent ( ) ; } break ; } }
Handles indentation before the current token.
Handles indentation before the current token .