@@ -44,9 +44,13 @@ |
||
44 | 44 | |
45 | 45 | public static function to_ewkt($array) |
46 | 46 | { |
47 | - if (is_string($array)) return $array; |
|
47 | + if (is_string($array)) { |
|
48 | + return $array; |
|
49 | + } |
|
48 | 50 | |
49 | - if ($array instanceof DBGeography) $array = $array->getValue(); |
|
51 | + if ($array instanceof DBGeography) { |
|
52 | + $array = $array->getValue(); |
|
53 | + } |
|
50 | 54 | |
51 | 55 | $type = isset($array['type']) ? strtoupper($array['type']) : null; |
52 | 56 | $srid = isset($array['srid']) ? $array['srid'] : Config::inst()->get(self::class, 'default_srid'); |