mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-24 01:32:22 +01:00
Change Hard code by $key, $val
This commit is contained in:
parent
a813157de1
commit
bd51037d21
@ -21,7 +21,7 @@ class RenderInXml extends Decorator
|
||||
$doc = new \DOMDocument();
|
||||
|
||||
foreach ($output as $key => $val) {
|
||||
$doc->appendChild($doc->createElement('foo', 'bar'));
|
||||
$doc->appendChild($doc->createElement($key, $val));
|
||||
}
|
||||
|
||||
return $doc->saveXML();
|
||||
|
Loading…
x
Reference in New Issue
Block a user