Skip to content

Commit 8bb1de9

Browse files
committed
camelCased $linearRing.
(cherry picked from commit e90ed9e)
1 parent 17550d3 commit 8bb1de9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Types/Polygon.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ public function toWKT()
1616
*/
1717
public function jsonSerialize()
1818
{
19-
$linearrings = [];
20-
foreach ($this->items as $linestring) {
21-
$linearrings[] = new \GeoJson\Geometry\LinearRing($linestring->jsonSerialize()->getCoordinates());
19+
$linearRings = [];
20+
foreach ($this->items as $lineString) {
21+
$linearRings[] = new \GeoJson\Geometry\LinearRing($lineString->jsonSerialize()->getCoordinates());
2222
}
2323

24-
return new \GeoJson\Geometry\Polygon($linearrings);
24+
return new \GeoJson\Geometry\Polygon($linearRings);
2525
}
2626
}

0 commit comments

Comments
 (0)