From b6b379a8cec11ea85c614df0c389d277c99d70fa Mon Sep 17 00:00:00 2001 From: Peter Knut Date: Tue, 19 Nov 2024 23:10:11 +0100 Subject: [PATCH] Improve arrays formatting in dump method --- adminer/include/debug.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/adminer/include/debug.inc.php b/adminer/include/debug.inc.php index 168f7b20..ec411539 100644 --- a/adminer/include/debug.inc.php +++ b/adminer/include/debug.inc.php @@ -8,7 +8,10 @@ function dump($value) echo "
";
 	}
 
-	var_export($value);
+	$export = var_export($value, true);
+	$export = preg_replace('~=>\s+array\s*~', "=> array", $export);
+	$export = preg_replace('~\(\s+\)~', "()", $export);
+	echo $export;
 
 	if (!$cli) {
 		echo "
";