Code Duplication    Length = 10-10 lines in 3 locations

src/Drivers/FreeGeoIp.php 1 location

@@ 38-47 (lines=10) @@
35
    /**
36
     * {@inheritdoc}
37
     */
38
    protected function process($ip)
39
    {
40
        try {
41
            $response = json_decode(file_get_contents($this->url().$ip), true);
42
43
            return new Fluent($response);
44
        } catch (\Exception $e) {
45
            return false;
46
        }
47
    }
48
}
49

src/Drivers/GeoPlugin.php 1 location

@@ 38-47 (lines=10) @@
35
    /**
36
     * {@inheritdoc}
37
     */
38
    protected function process($ip)
39
    {
40
        try {
41
            $response = unserialize(file_get_contents($this->url().$ip));
42
43
            return new Fluent($response);
44
        } catch (\Exception $e) {
45
            return false;
46
        }
47
    }
48
}
49

src/Drivers/IpInfo.php 1 location

@@ 46-55 (lines=10) @@
43
    /**
44
     * {@inheritdoc}
45
     */
46
    protected function process($ip)
47
    {
48
        try {
49
            $response = json_decode(file_get_contents($this->url().$ip));
50
51
            return new Fluent($response);
52
        } catch (\Exception $e) {
53
            return false;
54
        }
55
    }
56
}
57