private function generateIndent( $indent )
    {
        if( is_integer( $indent ) ) {
            $indent = str_repeat( $this->indentChar, $indent );
        } elseif( !is_string($indent) ) {
            throw new BadTypeException( $indent, 'int|string' );
        }
        return $indent;
    }
private function generateIndent( $indent )
    {
        if( is_integer( $indent ) ) {
            $indent = str_repeat( $this->indentChar, $indent );
        } elseif( !is_string($indent) ) {
            throw new BadTypeException( $indent, 'int|string' );
        }
        return $indent;
    }
private function generateIndent ( $ indent ) { if ( is_integer ( $ indent ) ) { $ indent = str_repeat ( $ this -> indentChar , $ indent ) ; } elseif ( ! is_string ( $ indent ) ) { throw new BadTypeException ( $ indent , 'int|string' ) ; } return $ indent ; }
Generate indention string from length.
@param int|string Either the length of the indentation in whitespace or the string to indent
@return string Indention string
Generate indention string from length .