public static function format($query, array $options = [])
    {
        $lexer = new Lexer($query);
        $formatter = new self($options);

        return $formatter->formatList($lexer->list);
    }
public static function format($query, array $options = [])
    {
        $lexer = new Lexer($query);
        $formatter = new self($options);

        return $formatter->formatList($lexer->list);
    }
public static function format ( $ query , array $ options = [ ] ) { $ lexer = new Lexer ( $ query ) ; $ formatter = new self ( $ options ) ; return $ formatter -> formatList ( $ lexer -> list ) ; }
Formats a query.

@param string $query   The query to be formatted
@param array  $options the formatting options

@return string the formatted string
Formats a query .