Code Duplication    Length = 8-8 lines in 2 locations

src/Palladium/Service/Identification.php 2 locations

@@ 128-135 (lines=8) @@
125
            throw new IdentityExpired;
126
        }
127
128
        if ($identity->matchKey($key) === false) {
129
            $identity->setStatus(Entity\Identity::STATUS_BLOCKED);
130
            $mapper->store($identity);
131
132
            $this->logCookieError($identity, 'compromised cookie');
133
134
            throw new CompromisedCookie;
135
        }
136
137
        $identity->generateNewKey();
138
        $identity->setLastUsed(time());
@@ 178-185 (lines=8) @@
175
176
        $mapper = $this->mapperFactory->create(Mapper\CookieIdentity::class);
177
178
        if ($identity->matchKey($key) === false) {
179
            $identity->setStatus(Entity\Identity::STATUS_BLOCKED);
180
            $mapper->store($identity);
181
182
            $this->logCookieError($identity, 'compromised cookie');
183
184
            throw new CompromisedCookie;
185
        }
186
187
        $identity->setStatus(Entity\Identity::STATUS_DISCARDED);
188
        $mapper->store($identity);