Code Duplication    Length = 7-9 lines in 2 locations

src/Storage/SessionStorage.php 2 locations

@@ 36-42 (lines=7) @@
33
    /**
34
     * {@inheritdoc}
35
     */
36
    public function get($key)
37
    {
38
        $this->validateKey($key);
39
        $name = $this->getStorageKeyId($key);
40
41
        return isset($_SESSION[$name]) ? $_SESSION[$name] : null;
42
    }
43
44
    /**
45
     * {@inheritdoc}
@@ 47-55 (lines=9) @@
44
    /**
45
     * {@inheritdoc}
46
     */
47
    public function clear($key)
48
    {
49
        $this->validateKey($key);
50
51
        $name = $this->getStorageKeyId($key);
52
        if (isset($_SESSION[$name])) {
53
            unset($_SESSION[$name]);
54
        }
55
    }
56
}
57