SqlFormatter::format
Format the whitespace in a SQL string to make it easier to read.
Signature
public function format(String
$string,
[boolean
$highlight = true] )
Parameters
$string
— object- The SQL string
$highlight
— boolean- If true, syntax highlighting will also be performed
Returns
- String
- The SQL string with HTML styles and formatting wrapped in a <pre> tag