Code Duplication    Length = 3-3 lines in 2 locations

src/Location/Factory/CoordinateFactory.php 2 locations

@@ 109-111 (lines=3) @@
106
                $latitude = - $latitude;
107
            }
108
            $longitude = $match[6] + $match[7] / 60;
109
            if (strtoupper(trim($match[5])) === 'W' || strtoupper(trim($match[8])) === 'W') {
110
                $longitude = - $longitude;
111
            }
112
113
            return new Coordinate((float)$latitude, (float)$longitude, $ellipsoid);
114
        }
@@ 154-156 (lines=3) @@
151
                $latitude = - $latitude;
152
            }
153
            $longitude = $match[5];
154
            if (strtoupper(trim($match[4])) === 'W' || strtoupper(trim($match[6])) === 'W') {
155
                $longitude = - $longitude;
156
            }
157
158
            return new Coordinate((float)$latitude, (float)$longitude, $ellipsoid);
159
        }