Code Duplication    Length = 12-12 lines in 2 locations

src/Palladium/Entity/CookieIdentity.php 1 location

@@ 60-71 (lines=12) @@
57
     *
58
     * @param string $key
59
     */
60
    public function setKey($key)
61
    {
62
        $this->hash = null;
63
64
        if (empty($key)) {
65
            $this->key = null;
66
            return;
67
        }
68
69
        $this->key = (string) $key;
70
        $this->hash = $this->makeHash($key);
71
    }
72
73
74
    /**

src/Palladium/Entity/NonceIdentity.php 1 location

@@ 87-98 (lines=12) @@
84
     *
85
     * @param string $key
86
     */
87
    public function setKey($key)
88
    {
89
        $this->hash = null;
90
91
        if (empty($key)) {
92
            $this->key = null;
93
            return;
94
        }
95
96
        $this->key = (string) $key;
97
        $this->hash = $this->makeHash($key);
98
    }
99
100
101
    /**