Change Hard code by $key, $val

This commit is contained in:
Leandro 2014-01-30 11:59:25 -02:00
parent a813157de1
commit bd51037d21

View File

@ -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();