Code Duplication    Length = 5-5 lines in 2 locations

htdocs/lib2/logic/coordinate.class.php 1 location

@@ 62-66 (lines=5) @@
59
        }
60
        $nLatDeg = floor($nLat);
61
        $nLatMin = ($nLat - $nLatDeg) * 60;
62
        if ($bLatN) {
63
            $sLat = 'N ' . sprintf('%02d', $nLatDeg) . '° ' . sprintf($minute_format, $nLatMin) . '\'';
64
        } else {
65
            $sLat = 'S ' . sprintf('%02d', $nLatDeg) . '° ' . sprintf($minute_format, $nLatMin) . '\'';
66
        }
67
68
        // Ocprop: ([E|W].*?)'
69
        $nLon = $this->nLon;

htdocs_symfony/src/Repository/CoordinatesRepository.php 1 location

@@ 106-110 (lines=5) @@
103
        }
104
        $nLatDeg = floor($nLat);
105
        $nLatMin = ($nLat - $nLatDeg) * 60;
106
        if ($bLatN) {
107
            $sLat = 'N' . sprintf('%02d', $nLatDeg) . '° ' . sprintf($minute_format, $nLatMin) . '\'';
108
        } else {
109
            $sLat = 'S' . sprintf('%02d', $nLatDeg) . '° ' . sprintf($minute_format, $nLatMin) . '\'';
110
        }
111
112
        // Ocprop: ([E|W].*?)'
113
        $nLon = $this->nLon;