Code Duplication    Length = 7-7 lines in 2 locations

src/DavidePastore/Ipinfo/Ipinfo.php 2 locations

@@ 126-132 (lines=7) @@
123
     * @throws InvalidTokenException
124
     * @throws RateLimitExceedException
125
     */
126
    public function getYourOwnIpDetails()
127
    {
128
        $response = $this->makeCurlRequest($this::BASE_URL.'json');
129
        $response = $this->jsonDecodeResponse($response);
130
131
        return new Host($response);
132
    }
133
134
    /**
135
     * Get all the info about an ip address.
@@ 143-149 (lines=7) @@
140
     * @throws InvalidTokenException
141
     * @throws RateLimitExceedException
142
     */
143
    public function getFullIpDetails($ipAddress)
144
    {
145
        $response = $this->makeCurlRequest($this::BASE_URL.$ipAddress);
146
        $response = $this->jsonDecodeResponse($response);
147
148
        return new Host($response);
149
    }
150
151
    /**
152
     * Get a specific field value.