1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2025-01-20 12:46:47 +01:00

prevent a unnecessary concat

analog to b7ffdbbb92
This commit is contained in:
Markus Staab 2015-02-13 16:01:11 +01:00
parent b7ffdbbb92
commit ce5c76d79b

View File

@ -21,7 +21,7 @@ class NodeDumper
}
foreach ($node as $key => $value) {
$r .= "\n" . ' ' . $key . ': ';
$r .= "\n " . $key . ': ';
if (null === $value) {
$r .= 'null';
@ -32,7 +32,7 @@ class NodeDumper
} elseif (is_scalar($value)) {
$r .= $value;
} else {
$r .= str_replace("\n", "\n" . ' ', $this->dump($value));
$r .= str_replace("\n", "\n ", $this->dump($value));
}
}