Code Duplication    Length = 11-11 lines in 2 locations

IrishGridRef.php 1 location

@@ 102-112 (lines=11) @@
99
     * Convert this grid reference into a latitude and longitude
100
     * @return LatLng
101
     */
102
    public function toLatLng()
103
    {
104
        $N = $this->y;
105
        $E = $this->x;
106
        $N0 = $this->getOriginNorthing();
107
        $E0 = $this->getOriginEasting();
108
        $phi0 = $this->getOriginLatitude();
109
        $lambda0 = $this->getOriginLongitude();
110
111
        return $this->convertToLatitudeLongitude($N, $E, $N0, $E0, $phi0, $lambda0);
112
    }
113
114
    /**
115
     * String version of coordinate.

OSRef.php 1 location

@@ 180-190 (lines=11) @@
177
     * Convert this grid reference into a latitude and longitude
178
     * @return LatLng
179
     */
180
    public function toLatLng()
181
    {
182
        $N = $this->y;
183
        $E = $this->x;
184
        $N0 = $this->getOriginNorthing();
185
        $E0 = $this->getOriginEasting();
186
        $phi0 = $this->getOriginLatitude();
187
        $lambda0 = $this->getOriginLongitude();
188
189
        return $this->convertToLatitudeLongitude($N, $E, $N0, $E0, $phi0, $lambda0);
190
    }
191
192
    /**
193
     * String version of coordinate.