Code Duplication    Length = 8-8 lines in 2 locations

src/Cookie.php 2 locations

@@ 27-34 (lines=8) @@
24
     *
25
     * @return string|null
26
     */
27
    public function get($key)
28
    {
29
        if (isset($this->store[$key])) {
30
            return filter_var($this->store[$key], FILTER_SANITIZE_STRING);
31
        }
32
33
        return filter_input(INPUT_COOKIE, $key, FILTER_SANITIZE_STRING);
34
    }
35
36
    /**
37
     * Get cookie with FILTER_SANITIZE_NUMBER_INT
@@ 43-50 (lines=8) @@
40
     *
41
     * @return int|null
42
     */
43
    public function getInt($key)
44
    {
45
        if (isset($this->store[$key])) {
46
            return (int) filter_var($this->store[$key], FILTER_SANITIZE_NUMBER_INT);
47
        }
48
49
        return (int) filter_input(INPUT_COOKIE, $key, FILTER_SANITIZE_NUMBER_INT);
50
    }
51
52
    /**
53
     * Set a cookie value