@@ -103,14 +103,18 @@ |
||
103 | 103 | } |
104 | 104 | |
105 | 105 | return json_decode($coords, true)[0]; |
106 | - } else return null; |
|
106 | + } else { |
|
107 | + return null; |
|
108 | + } |
|
107 | 109 | default: throw new Exception('Unkown property ' . $property); |
108 | 110 | } |
109 | 111 | } |
110 | 112 | |
111 | 113 | public function __toString() |
112 | 114 | { |
113 | - if (is_string($this->value)) return $this->value; |
|
115 | + if (is_string($this->value)) { |
|
116 | + return $this->value; |
|
117 | + } |
|
114 | 118 | |
115 | 119 | $type = isset($this->value['type']) ? strtoupper($this->value['type']) : null; |
116 | 120 | $srid = isset($this->value['srid']) ? $this->value['srid'] : GIS::config()->default_srid; |
@@ -46,7 +46,7 @@ |
||
46 | 46 | return null; |
47 | 47 | } |
48 | 48 | |
49 | - return ['ST_GeogFromText(?)' => [ $value->reproject(4326)->wkt ]]; |
|
49 | + return ['ST_GeogFromText(?)' => [$value->reproject(4326)->wkt]]; |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | public function exists() |