Code Duplication    Length = 7-7 lines in 2 locations

src/DavidePastore/Ipinfo/Ipinfo.php 2 locations

@@ 162-168 (lines=7) @@
159
     * @throws InvalidTokenException
160
     * @throws RateLimitExceedException
161
     */
162
    public function getSpecificField($ipAddress, $field)
163
    {
164
        $response = $this->makeCurlRequest($this::BASE_URL.$ipAddress.'/'.$field);
165
        $response = $this->checkGeo($field, $response);
166
167
        return $response;
168
    }
169
170
    /**
171
     * Get a specific field value of your own ip address.
@@ 181-187 (lines=7) @@
178
     * @throws InvalidTokenException
179
     * @throws RateLimitExceedException
180
     */
181
    public function getYourOwnIpSpecificField($field)
182
    {
183
        $response = $this->makeCurlRequest($this::BASE_URL.$field);
184
        $response = $this->checkGeo($field, $response);
185
186
        return $response;
187
    }
188
189
    /**
190
     * Use the /geo call to get just the geolocation information, which will often be