diff --git a/src/Api/Client.php b/src/Api/Client.php index fb2e4a94..ee5f7e51 100644 --- a/src/Api/Client.php +++ b/src/Api/Client.php @@ -349,7 +349,7 @@ protected function _arrayToXml(array $array, SimpleXMLElement $xml, $parentEl = $el = is_int($key) && $parentEl ? $parentEl : $key; if (is_array($value)) { $this->_arrayToXml($value, $this->_isAssocArray($value) ? $xml->addChild($el) : $xml, $el); - } elseif(!isset($xml->{$el})) { + } elseif (!isset($xml->{$el})) { $xml->{$el} = (string) $value; } else { $xml->{$el}[] = (string) $value;