Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lib/SqlFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -426,15 +426,14 @@ protected static function tokenize($string)
*
* @return String The SQL string with HTML styles and formatting wrapped in a <pre> tag
*/
public static function format($string, $highlight=true)
public static function format($string, $highlight=true, $indent_level=0)
{
// This variable will be populated with formatted html
$return = '';

// Use an actual tab while formatting and then switch out with self::$tab at the end
$tab = "\t";

$indent_level = 0;
$newline = false;
$inline_parentheses = false;
$increase_special_indent = false;
Expand Down