Code Duplication    Length = 11-11 lines in 2 locations

src/IrishGridRef.php 1 location

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

src/OSRef.php 1 location

@@ 185-195 (lines=11) @@
182
     *
183
     * @return LatLng
184
     */
185
    public function toLatLng()
186
    {
187
        $N = $this->y;
188
        $E = $this->x;
189
        $N0 = $this->getOriginNorthing();
190
        $E0 = $this->getOriginEasting();
191
        $phi0 = $this->getOriginLatitude();
192
        $lambda0 = $this->getOriginLongitude();
193
194
        return $this->convertToLatitudeLongitude($N, $E, $N0, $E0, $phi0, $lambda0);
195
    }
196
197
    /**
198
     * String version of coordinate.