mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-30 19:50:12 +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();
|
$doc = new \DOMDocument();
|
||||||
|
|
||||||
foreach ($output as $key => $val) {
|
foreach ($output as $key => $val) {
|
||||||
$doc->appendChild($doc->createElement('foo', 'bar'));
|
$doc->appendChild($doc->createElement($key, $val));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $doc->saveXML();
|
return $doc->saveXML();
|
||||||
|
Reference in New Issue
Block a user