From f55192bf088907de1f17342362770731b46f482a Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Thu, 26 May 2011 19:30:45 +0100 Subject: [PATCH] MDL-20636 improve the fomatting of the generated code. --- local/qeupgradehelper/locallib.php | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/local/qeupgradehelper/locallib.php b/local/qeupgradehelper/locallib.php index 8cba61c2a05bb..ad4bbc48e1beb 100755 --- a/local/qeupgradehelper/locallib.php +++ b/local/qeupgradehelper/locallib.php @@ -540,14 +540,19 @@ function local_qeupgradehelper_format_var($name, $var) { $out = preg_replace('/=> \n\s*/', '=> ', $out); $out = str_replace(')),', '),', $out); $out = str_replace('))', ')', $out); - $out = preg_replace('/\n (?! )/', "\n ", $out); - $out = preg_replace('/\n (?! )/', "\n ", $out); - $out = preg_replace('/\n (?! )/', "\n ", $out); - $out = preg_replace('/\n (?! )/', "\n ", $out); - $out = preg_replace('/\n (?! )/', "\n ", $out); - $out = preg_replace('/\n (?! )/', "\n ", $out); - $out = preg_replace('/\n (?! )/', "\n ", $out); - $out = preg_replace('/\n(?! )/', "\n ", $out); + $out = preg_replace('/\n (?! )/', "\n ", $out); + $out = preg_replace('/\n (?! )/', "\n ", $out); + $out = preg_replace('/\n (?! )/', "\n ", $out); + $out = preg_replace('/\n (?! )/', "\n ", $out); + $out = preg_replace('/\n (?! )/', "\n ", $out); + $out = preg_replace('/\n (?! )/', "\n ", $out); + $out = preg_replace('/\n (?! )/', "\n ", $out); + $out = preg_replace('/\n (?! )/', "\n ", $out); + $out = preg_replace('/\n (?! )/', "\n ", $out); + $out = preg_replace('/\n (?! )/', "\n ", $out); + $out = preg_replace('/\n (?! )/', "\n ", $out); + $out = preg_replace('/\n (?! )/', "\n ", $out); + $out = preg_replace('/\n(?! )/', "\n ", $out); $out = preg_replace('/\bNULL\b/', 'null', $out); return " $name = $out;\n"; }