private function postIndent()
    {
        $next = $this->tokens->getId($this->tokens->key() + 1);

        switch ($this->tokens->getId()) {
            case DocLexer::T_COLON:
                if ($this->space) {
                    $this->result .= ' ';
                }

                break;
            case DocLexer::T_COMMA:
                if ((DocLexer::T_CLOSE_CURLY_BRACES !== $next)
                    && (DocLexer::T_CLOSE_PARENTHESIS !== $next)) {
                    $this->indent();
                }

                break;
            case DocLexer::T_OPEN_CURLY_BRACES:
                $this->level++;

                if (DocLexer::T_CLOSE_CURLY_BRACES !== $next) {
                    $this->indent();
                }

                break;
            case DocLexer::T_OPEN_PARENTHESIS:
                $this->level++;

                if (DocLexer::T_CLOSE_PARENTHESIS !== $next) {
                    $this->indent();
                }

                break;
        }
    }
private function postIndent()
    {
        $next = $this->tokens->getId($this->tokens->key() + 1);

        switch ($this->tokens->getId()) {
            case DocLexer::T_COLON:
                if ($this->space) {
                    $this->result .= ' ';
                }

                break;
            case DocLexer::T_COMMA:
                if ((DocLexer::T_CLOSE_CURLY_BRACES !== $next)
                    && (DocLexer::T_CLOSE_PARENTHESIS !== $next)) {
                    $this->indent();
                }

                break;
            case DocLexer::T_OPEN_CURLY_BRACES:
                $this->level++;

                if (DocLexer::T_CLOSE_CURLY_BRACES !== $next) {
                    $this->indent();
                }

                break;
            case DocLexer::T_OPEN_PARENTHESIS:
                $this->level++;

                if (DocLexer::T_CLOSE_PARENTHESIS !== $next) {
                    $this->indent();
                }

                break;
        }
    }
private function postIndent ( ) { $ next = $ this -> tokens -> getId ( $ this -> tokens -> key ( ) + 1 ) ; switch ( $ this -> tokens -> getId ( ) ) { case DocLexer :: T_COLON : if ( $ this -> space ) { $ this -> result .= ' ' ; } break ; case DocLexer :: T_COMMA : if ( ( DocLexer :: T_CLOSE_CURLY_BRACES !== $ next ) && ( DocLexer :: T_CLOSE_PARENTHESIS !== $ next ) ) { $ this -> indent ( ) ; } break ; case DocLexer :: T_OPEN_CURLY_BRACES : $ this -> level ++ ; if ( DocLexer :: T_CLOSE_CURLY_BRACES !== $ next ) { $ this -> indent ( ) ; } break ; case DocLexer :: T_OPEN_PARENTHESIS : $ this -> level ++ ; if ( DocLexer :: T_CLOSE_PARENTHESIS !== $ next ) { $ this -> indent ( ) ; } break ; } }
Handles indentation after the current token.
Handles indentation after the current token .