@@ -20,15 +20,15 @@ discard block |
||
| 20 | 20 | * @param \SimpleXMLElement $xml |
| 21 | 21 | * @codeCoverageIgnore |
| 22 | 22 | */ |
| 23 | - private function convertArrayToXml(\SimpleXMLElement &$xml, $data) |
|
| 23 | + private function convertArrayToXml(\SimpleXMLElement & $xml, $data) |
|
| 24 | 24 | { |
| 25 | 25 | foreach ($data as $key=>$value) { |
| 26 | 26 | |
| 27 | - if(is_numeric($key)) { |
|
| 27 | + if (is_numeric($key)) { |
|
| 28 | 28 | $key = 'item' . $key; |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | - if(is_array($value['value'])) { |
|
| 31 | + if (is_array($value['value'])) { |
|
| 32 | 32 | |
| 33 | 33 | $node = $this->generateNode($xml, $key, $value); |
| 34 | 34 | $this->convertArrayToXml($node, $value['value']); |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | * @return null|\SimpleXMLElement |
| 48 | 48 | * @codeCoverageIgnore |
| 49 | 49 | */ |
| 50 | - private function generateNode(\SimpleXMLElement &$xml, $key, $value = null) |
|
| 50 | + private function generateNode(\SimpleXMLElement & $xml, $key, $value = null) |
|
| 51 | 51 | { |
| 52 | 52 | $node = null; |
| 53 | 53 | |