summaryrefslogtreecommitdiffstats
path: root/lib/SqlFormatter.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/SqlFormatter.php')
-rw-r--r--lib/SqlFormatter.php12
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/SqlFormatter.php b/lib/SqlFormatter.php
index 55e5207..dc06e51 100644
--- a/lib/SqlFormatter.php
+++ b/lib/SqlFormatter.php
@@ -748,7 +748,7 @@ class SqlFormatter
$result .= $token[self::TOKEN_VALUE];
}
- $result = self::remove_blank_lines($result);
+ $result = self::format( $result,false);
return $result;
}
@@ -1051,14 +1051,4 @@ class SqlFormatter
else return php_sapi_name() === 'cli';
}
- /**
- * Removes blank line between and before sql statements.
- *@param String $sql from which blank lines need to be removed
- *
- * @return String sql without blank lines
- */
- private static function remove_blank_lines($sql)
- {
- return preg_replace('/^\n+|^[\t\s]*\n+/m','',$sql);
- }
}