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

Merge pull request #175 from staabm/patch-1

prevent a unnecessary concat
This commit is contained in:
Nikita Popov 2015-02-13 18:03:18 +01:00
commit 53eac36a3f

View File

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