We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80d305f commit 4202ed3Copy full SHA for 4202ed3
app/Parsers/Files/GPXParser.php
@@ -148,9 +148,8 @@ private function convertSimpleXMLElementToString($element)
148
&& count($element->children()) === 0
149
) {
150
$element = (string) $element;
151
- }
152
- // Else if it is a simpleXMLElement and it has children we need to call this function again
153
- elseif ($element instanceof \SimpleXMLElement) {
+ } elseif ($element instanceof \SimpleXMLElement) {
+ // Else if it is a simpleXMLElement and it has children we need to call this function again
154
$element = (array) $element;
155
foreach ($element as $key => $value) {
156
$element[$key] = $this->convertSimpleXMLElementToString($value);
0 commit comments