Code Duplication    Length = 7-7 lines in 2 locations

src/DavidePastore/Ipinfo/Ipinfo.php 2 locations

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