@@ -229,7 +229,7 @@ |
||
229 | 229 | |
230 | 230 | protected static function reproject_array($coordinates, $fromProj, $toProj) |
231 | 231 | { |
232 | - return self::each($coordinates, function ($coordinate) use ($fromProj, $toProj) { |
|
232 | + return self::each($coordinates, function($coordinate) use ($fromProj, $toProj) { |
|
233 | 233 | return array_slice(self::$proj4->transform($toProj, new Point($coordinate[0], $coordinate[1], $fromProj))->toArray(), 0, 2); |
234 | 234 | }); |
235 | 235 | } |
@@ -6,7 +6,9 @@ |
||
6 | 6 | use SilverStripe\ORM\DB; |
7 | 7 | use Smindel\GIS\GIS; |
8 | 8 | |
9 | -if (!class_exists(SQLite3SchemaManager::class)) return; |
|
9 | +if (!class_exists(SQLite3SchemaManager::class)) { |
|
10 | + return; |
|
11 | +} |
|
10 | 12 | |
11 | 13 | class SQLite3GISSchemaManager extends SQLite3SchemaManager |
12 | 14 | { |