Code Duplication    Length = 7-7 lines in 2 locations

src/DavidePastore/Ipinfo/Ipinfo.php 2 locations

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