Code Duplication    Length = 3-3 lines in 2 locations

src/Location/Factory/CoordinateFactory.php 2 locations

@@ 90-92 (lines=3) @@
87
                $latitude = - $latitude;
88
            }
89
            $longitude = $match[6] + $match[7] / 60;
90
            if (trim(strtoupper($match[5])) === 'W' || trim(strtoupper($match[8])) === 'W') {
91
                $longitude = - $longitude;
92
            }
93
94
            return new Coordinate($latitude, $longitude, $ellipsoid);
95
        }
@@ 121-123 (lines=3) @@
118
                $latitude = - $latitude;
119
            }
120
            $longitude = $match[5];
121
            if (trim(strtoupper($match[4])) === 'W' || trim(strtoupper($match[6])) === 'W') {
122
                $longitude = - $longitude;
123
            }
124
125
            return new Coordinate($latitude, $longitude, $ellipsoid);
126
        }