Code Duplication    Length = 3-3 lines in 2 locations

src/Factory/CoordinateFactory.php 2 locations

@@ 105-107 (lines=3) @@
102
        )
103
        ) {
104
            $latitude = (int)$match[2] + (float)$match[3] / 60;
105
            if (strtoupper(trim($match[1])) === 'S' || strtoupper(trim($match[4])) === 'S') {
106
                $latitude = - $latitude;
107
            }
108
            $longitude = (int)$match[6] + (float)$match[7] / 60;
109
            if (strtoupper(trim($match[5])) === 'W' || strtoupper(trim($match[8])) === 'W') {
110
                $longitude = - $longitude;
@@ 155-157 (lines=3) @@
152
        )
153
        ) {
154
            $latitude = $match[2];
155
            if (strtoupper(trim($match[1])) === 'S' || strtoupper(trim($match[3])) === 'S') {
156
                $latitude = - $latitude;
157
            }
158
            $longitude = $match[5];
159
            if (strtoupper(trim($match[4])) === 'W' || strtoupper(trim($match[6])) === 'W') {
160
                $longitude = - $longitude;