mirror of
https://github.com/danog/PHP-Parser.git
synced 2025-01-20 04:36:57 +01:00
Merge pull request #175 from staabm/patch-1
prevent a unnecessary concat
This commit is contained in:
commit
53eac36a3f
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user