Code Duplication    Length = 7-7 lines in 2 locations

src/DavidePastore/Ipinfo/Ipinfo.php 2 locations

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