Code Duplication    Length = 10-10 lines in 2 locations

src/Polygon.php 1 location

@@ 247-256 (lines=10) @@
244
     *
245
     * @return Polygon
246
     */
247
    public function getReverse(): Polygon
248
    {
249
        $reversed = new static();
250
251
        foreach (array_reverse($this->points) as $point) {
252
            $reversed->addPoint($point);
253
        }
254
255
        return $reversed;
256
    }
257
}
258

src/Polyline.php 1 location

@@ 104-113 (lines=10) @@
101
     *
102
     * @return Polyline
103
     */
104
    public function getReverse(): Polyline
105
    {
106
        $reversed = new static();
107
108
        foreach (array_reverse($this->points) as $point) {
109
            $reversed->addPoint($point);
110
        }
111
112
        return $reversed;
113
    }
114
115
    /**
116
     * @return Bounds