Code Duplication    Length = 10-11 lines in 2 locations

src/Http/src/CookieJar.php 2 locations

@@ 27-37 (lines=11) @@
24
    /**
25
     * @inheritDoc
26
     */
27
    public function add(
28
        string $name,
29
        string $value,
30
        DateTimeInterface $expires,
31
        string $path = '',
32
        string $domain = '',
33
        bool $secure = false,
34
        bool $httpOnly = false
35
    ) {
36
        $this->put(new Cookie($name, $value, $expires, $path, $domain, $secure, $httpOnly));
37
    }
38
39
    /**
40
     * @inheritDoc
@@ 88-97 (lines=10) @@
85
    /**
86
     * @inheritDoc
87
     */
88
    public function session(
89
        string $name,
90
        string $value,
91
        string $path = '',
92
        string $domain = '',
93
        bool $secure = false,
94
        bool $httpOnly = false
95
    ) {
96
        $this->put(new Cookie($name, $value, null, $path, $domain, $secure, $httpOnly));
97
    }
98
99
100
}