Code Duplication    Length = 7-7 lines in 2 locations

src/DavidePastore/Ipinfo/Ipinfo.php 2 locations

@@ 155-161 (lines=7) @@
152
     *                                           This could returns an Host object if you call it with for the field
153
     *                                           \DavidePastore\Ipinfo\Ipinfo::GEO.
154
     */
155
    public function getSpecificField($ipAddress, $field)
156
    {
157
        $response = $this->makeCurlRequest($this::BASE_URL.$ipAddress.'/'.$field);
158
        $response = $this->checkGeo($field, $response);
159
160
        return $response;
161
    }
162
163
    /**
164
     * Get a specific field value of your own ip address.
@@ 172-178 (lines=7) @@
169
     *                                           This could returns an Host object if you call it with for the field
170
     *                                           \DavidePastore\Ipinfo\Ipinfo::GEO.
171
     */
172
    public function getYourOwnIpSpecificField($field)
173
    {
174
        $response = $this->makeCurlRequest($this::BASE_URL.$field);
175
        $response = $this->checkGeo($field, $response);
176
177
        return $response;
178
    }
179
180
    /**
181
     * Use the /geo call to get just the geolocation information, which will often be