We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17550d3 commit 8bb1de9Copy full SHA for 8bb1de9
src/Types/Polygon.php
@@ -16,11 +16,11 @@ public function toWKT()
16
*/
17
public function jsonSerialize()
18
{
19
- $linearrings = [];
20
- foreach ($this->items as $linestring) {
21
- $linearrings[] = new \GeoJson\Geometry\LinearRing($linestring->jsonSerialize()->getCoordinates());
+ $linearRings = [];
+ foreach ($this->items as $lineString) {
+ $linearRings[] = new \GeoJson\Geometry\LinearRing($lineString->jsonSerialize()->getCoordinates());
22
}
23
24
- return new \GeoJson\Geometry\Polygon($linearrings);
+ return new \GeoJson\Geometry\Polygon($linearRings);
25
26
0 commit comments