@@ -34,6 +34,9 @@ discard block |
||
34 | 34 | $this->addXmlChildren($dom, $element, $elementName, $structuredData); |
35 | 35 | } |
36 | 36 | |
37 | + /** |
|
38 | + * @param \DOMElement $xmlParent |
|
39 | + */ |
|
37 | 40 | protected function addXmlChildren(\DOMDocument $dom, $xmlParent, $elementName, $structuredData) |
38 | 41 | { |
39 | 42 | foreach ($structuredData as $key => $value) { |
@@ -52,6 +55,9 @@ discard block |
||
52 | 55 | $this->addXmlData($dom, $xmlParent, $elementName, $value); |
53 | 56 | } |
54 | 57 | |
58 | + /** |
|
59 | + * @param string $childElementName |
|
60 | + */ |
|
55 | 61 | protected function determineElementName($key, $childElementName, $value) |
56 | 62 | { |
57 | 63 | if (is_numeric($key)) { |
@@ -58,7 +58,7 @@ |
||
58 | 58 | return $childElementName; |
59 | 59 | } |
60 | 60 | if (is_object($value)) { |
61 | - $value = (array)$value; |
|
61 | + $value = (array) $value; |
|
62 | 62 | } |
63 | 63 | if (!is_array($value)) { |
64 | 64 | return $key; |