Code Duplication    Length = 3-3 lines in 2 locations

src/Location/Factory/CoordinateFactory.php 2 locations

@@ 102-104 (lines=3) @@
99
                $latitude = - $latitude;
100
            }
101
            $longitude = $match[6] + $match[7] / 60;
102
            if (trim(strtoupper($match[5])) === 'W' || trim(strtoupper($match[8])) === 'W') {
103
                $longitude = - $longitude;
104
            }
105
106
            return new Coordinate($latitude, $longitude, $ellipsoid);
107
        }
@@ 145-147 (lines=3) @@
142
                $latitude = - $latitude;
143
            }
144
            $longitude = $match[5];
145
            if (trim(strtoupper($match[4])) === 'W' || trim(strtoupper($match[6])) === 'W') {
146
                $longitude = - $longitude;
147
            }
148
149
            return new Coordinate($latitude, $longitude, $ellipsoid);
150
        }