Code Duplication    Length = 7-7 lines in 2 locations

src/DavidePastore/Ipinfo/Ipinfo.php 2 locations

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