Code Duplication    Length = 7-7 lines in 2 locations

src/DavidePastore/Ipinfo/Ipinfo.php 2 locations

@@ 122-128 (lines=7) @@
119
     *
120
     * @return \DavidePastore\Ipinfo\Host The Host object with all the info.
121
     */
122
    public function getYourOwnIpDetails()
123
    {
124
        $response = $this->makeCurlRequest($this::BASE_URL.'json');
125
        $response = $this->jsonDecodeResponse($response);
126
127
        return new Host($response);
128
    }
129
130
    /**
131
     * Get all the info about an ip address.
@@ 137-143 (lines=7) @@
134
     *
135
     * @return \DavidePastore\Ipinfo\Host The Host object with all the info.
136
     */
137
    public function getFullIpDetails($ipAddress)
138
    {
139
        $response = $this->makeCurlRequest($this::BASE_URL.$ipAddress);
140
        $response = $this->jsonDecodeResponse($response);
141
142
        return new Host($response);
143
    }
144
145
    /**
146
     * Get a specific field value.