Code Duplication    Length = 10-10 lines in 2 locations

src/Polygon.php 1 location

@@ 260-269 (lines=10) @@
257
     *
258
     * @return Polygon
259
     */
260
    public function getReverse(): Polygon
261
    {
262
        $reversed = new static();
263
264
        foreach (array_reverse($this->points) as $point) {
265
            $reversed->addPoint($point);
266
        }
267
268
        return $reversed;
269
    }
270
}
271

src/Polyline.php 1 location

@@ 116-125 (lines=10) @@
113
     *
114
     * @return Polyline
115
     */
116
    public function getReverse(): Polyline
117
    {
118
        $reversed = new static();
119
120
        foreach (array_reverse($this->points) as $point) {
121
            $reversed->addPoint($point);
122
        }
123
124
        return $reversed;
125
    }
126
127
    /**
128
     * @return Bounds