mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-30 03:30:14 +02:00
Merge pull request #63 from lleitep3/patch-1
Change Hard code by $key, $val
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user