@@ -118,7 +118,7 @@ |
||
118 | 118 | $this->tableName, |
119 | 119 | $this->rasterColumn, |
120 | 120 | $band, |
121 | - $split[0],$split[1] |
|
121 | + $split[0], $split[1] |
|
122 | 122 | ); |
123 | 123 | |
124 | 124 | return DB::query($sql)->value(); |
@@ -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'); |