@@ -112,8 +112,7 @@ |
||
112 | 112 | |
113 | 113 | // The document does not have a placemark, try to create a valid geometry from the root element |
114 | 114 | $nodeName = $this->xmlObject->documentElement->nodeName === 'multigeometry' ? |
115 | - 'geometrycollection' : |
|
116 | - $this->xmlObject->documentElement->nodeName; |
|
115 | + 'geometrycollection' : $this->xmlObject->documentElement->nodeName; |
|
117 | 116 | |
118 | 117 | if (array_key_exists($nodeName, geoPHP::getGeometryList())) { |
119 | 118 | $function = 'parse' . geoPHP::getGeometryList()[$nodeName]; |
@@ -365,7 +365,7 @@ |
||
365 | 365 | } |
366 | 366 | |
367 | 367 | // First char is a tab, space or carriage-return. trim it and try again |
368 | - if (in_array($bytes[1], [9,10,32], true)) { |
|
368 | + if (in_array($bytes[1], [9, 10, 32], true)) { |
|
369 | 369 | $input = ltrim($input); |
370 | 370 | return geoPHP::detectFormat($input); |
371 | 371 | } |