Code Duplication    Length = 7-7 lines in 2 locations

src/DavidePastore/Ipinfo/Ipinfo.php 2 locations

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