From 9b2f592d3cbdd0cf5ef13019f3159a5e7183afbd Mon Sep 17 00:00:00 2001 From: lshea Date: Thu, 30 Jun 2016 12:31:37 -0400 Subject: [PATCH] Complete. --- lib/SqlFormatter.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/SqlFormatter.php b/lib/SqlFormatter.php index 49e1d2f..662092c 100644 --- a/lib/SqlFormatter.php +++ b/lib/SqlFormatter.php @@ -426,7 +426,7 @@ protected static function tokenize($string) * * @return String The SQL string with HTML styles and formatting wrapped in a
 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 = '';
@@ -434,7 +434,6 @@ public static function format($string, $highlight=true)
         // 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;