diff options
author | Urban Müller | 2021-02-03 15:07:19 +0100 |
---|---|---|
committer | Urban Müller | 2021-02-03 15:07:19 +0100 |
commit | 846d80c1d8ce1baf7b3a07798d7f702466888842 (patch) | |
tree | feb89a5ea74c4c28b359c0507efa020573a610f3 /it_debug.class | |
parent | 1b94225ce6d8420718e21d0834211a5a1224c5e8 (diff) | |
download | itools-846d80c1d8ce1baf7b3a07798d7f702466888842.tar.gz itools-846d80c1d8ce1baf7b3a07798d7f702466888842.tar.bz2 itools-846d80c1d8ce1baf7b3a07798d7f702466888842.zip |
no extra line for object literals
Diffstat (limited to 'it_debug.class')
-rw-r--r-- | it_debug.class | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/it_debug.class b/it_debug.class index d7934d8..b6ebeba 100644 --- a/it_debug.class +++ b/it_debug.class @@ -135,6 +135,7 @@ static function dump($args) $item = preg_replace('#class (\S+) \{\s+([^({,;]+;)?\s+\}#', 'class $1 { $2 }', $item); # 1-element objects on 1 line #$item = preg_replace('#\{\s*var \$attr#', '{ var $attr', $item); # move $attr on same line $item = preg_replace("#\\(\s*\n\s*\\)#", "()", $item); # empty arrays on 1 line + $item = preg_replace("# => \n\s+\(object\) array\(\n#", " => (object) array(\n", $item); #$item = preg_replace('#\s+var \$_(.|\n)*?;\s*\n#', "", $item); $item = "$red$item$nored"; |