Skip to content

Commit 5276220

Browse files
committed
cleanup
1 parent 40d9dbe commit 5276220

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

api.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6839,7 +6839,6 @@ public static function fromWkt(string $wkt): Geometry
68396839
$coordinates = preg_replace('|([0-9\-\.]+ )+([0-9\-\.]+)|', '[\1\2]', $coordinates);
68406840
}
68416841
$coordinates = str_replace(['(', ')', ', ', ' '], ['[', ']', ',', ','], $coordinates);
6842-
$json = $coordinates;
68436842
$coordinates = json_decode($coordinates);
68446843
if (!$coordinates) {
68456844
throw new \Exception('Could not decode WKT: ' . $wkt);

src/Tqdev/PhpCrudApi/GeoJson/Geometry.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public static function fromWkt(string $wkt): Geometry
4242
$coordinates = preg_replace('|([0-9\-\.]+ )+([0-9\-\.]+)|', '[\1\2]', $coordinates);
4343
}
4444
$coordinates = str_replace(['(', ')', ', ', ' '], ['[', ']', ',', ','], $coordinates);
45-
$json = $coordinates;
4645
$coordinates = json_decode($coordinates);
4746
if (!$coordinates) {
4847
throw new \Exception('Could not decode WKT: ' . $wkt);

0 commit comments

Comments
 (0)