Code Duplication    Length = 7-7 lines in 2 locations

src/DavidePastore/Ipinfo/Ipinfo.php 2 locations

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