diff options
author | Nathan Gass | 2021-01-06 16:54:14 +0100 |
---|---|---|
committer | Nathan Gass | 2021-01-06 16:54:14 +0100 |
commit | bdb59ae566c1b4c78a4d82a881f8b1ffbf6dbbef (patch) | |
tree | 26d1bb58707c9b799f44866dc1640c106a474f87 /it_debug.class | |
parent | 6190f37f8a6b6dadccb0766326a0ad8781670f41 (diff) | |
parent | 7ee56cc6e8ea89c030b3eb5f8d4d4f8c1d5a053d (diff) | |
download | itools-bdb59ae566c1b4c78a4d82a881f8b1ffbf6dbbef.tar.gz itools-bdb59ae566c1b4c78a4d82a881f8b1ffbf6dbbef.tar.bz2 itools-bdb59ae566c1b4c78a4d82a881f8b1ffbf6dbbef.zip |
Merge branch 'master' into ng/postgresql
Diffstat (limited to 'it_debug.class')
-rw-r--r-- | it_debug.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_debug.class b/it_debug.class index 409b708..12fb254 100644 --- a/it_debug.class +++ b/it_debug.class @@ -129,7 +129,7 @@ static function dump($args) $item = $head . "class $classname { $values }$tail"; } - $item = preg_replace_callback('/\b(1[2345]\d\d\d\d\d\d\d\d)\b(.*)/', function($m) { return $m[1] . $m[2] . " # " . date('Y-m-d H:i:s', $m[1]); }, $item); + $item = preg_replace_callback('/\b(1[2-9]\d\d\d\d\d\d\d\d)\b(.*)/', function($m) { return $m[1] . $m[2] . " # " . date('Y-m-d H:i:s', $m[1]); }, $item); $item = preg_replace("#(=>?)\s*\n\s*(array|class)#", '$1 $2', $item); # array( and class on same line as key $item = preg_replace_callback('#array \(\s+([^(){};]{1,100}),\s+\)#', function($m) { return "array (" . preg_replace("#\n\s+#", " ", $m[1]) . ")"; }, $item); # short arrays on 1 line $item = preg_replace('#class (\S+) \{\s+([^({,;]+;)?\s+\}#', 'class $1 { $2 }', $item); # 1-element objects on 1 line |