@@ -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(); |
@@ -43,9 +43,13 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | public static function to_ewkt($array) |
| 45 | 45 | { |
| 46 | - if (is_string($array)) return $array; |
|
| 46 | + if (is_string($array)) { |
|
| 47 | + return $array; |
|
| 48 | + } |
|
| 47 | 49 | |
| 48 | - if ($array instanceof Geography) $array = $array->getValue(); |
|
| 50 | + if ($array instanceof Geography) { |
|
| 51 | + $array = $array->getValue(); |
|
| 52 | + } |
|
| 49 | 53 | |
| 50 | 54 | $type = isset($array['type']) ? strtoupper($array['type']) : null; |
| 51 | 55 | $srid = isset($array['srid']) ? $array['srid'] : Config::inst()->get(self::class, 'default_srid'); |
@@ -85,7 +89,9 @@ discard block |
||
| 85 | 89 | '', |
| 86 | 90 | ], json_encode($array)); |
| 87 | 91 | |
| 88 | - if ($type == 'POINT') $coords2 = "($coords2)"; |
|
| 92 | + if ($type == 'POINT') { |
|
| 93 | + $coords2 = "($coords2)"; |
|
| 94 | + } |
|
| 89 | 95 | |
| 90 | 96 | return sprintf('SRID=%d;%s%s', $srid, $type, $coords2); |
| 91 | 97 | } |