Code Duplication    Length = 13-13 lines in 3 locations

src/Surfnet/Stepup/Identity/Entity/UnverifiedSecondFactor.php 1 location

@@ 169-181 (lines=13) @@
166
        );
167
    }
168
169
    public function complyWithRevocation(IdentityId $authorityId)
170
    {
171
        $this->apply(
172
            new CompliedWithUnverifiedSecondFactorRevocationEvent(
173
                $this->identity->getId(),
174
                $this->identity->getInstitution(),
175
                $this->id,
176
                $this->type,
177
                $this->secondFactorIdentifier,
178
                $authorityId
179
            )
180
        );
181
    }
182
183
    /**
184
     * @param DateTime $registrationRequestedAt

src/Surfnet/Stepup/Identity/Entity/VettedSecondFactor.php 1 location

@@ 105-117 (lines=13) @@
102
        );
103
    }
104
105
    public function complyWithRevocation(IdentityId $authorityId)
106
    {
107
        $this->apply(
108
            new CompliedWithVettedSecondFactorRevocationEvent(
109
                $this->identity->getId(),
110
                $this->identity->getInstitution(),
111
                $this->id,
112
                $this->type,
113
                $this->secondFactorIdentifier,
114
                $authorityId
115
            )
116
        );
117
    }
118
119
    protected function applyIdentityForgottenEvent(IdentityForgottenEvent $event)
120
    {

src/Surfnet/Stepup/Identity/Entity/VerifiedSecondFactor.php 1 location

@@ 194-206 (lines=13) @@
191
        );
192
    }
193
194
    public function complyWithRevocation(IdentityId $authorityId)
195
    {
196
        $this->apply(
197
            new CompliedWithVerifiedSecondFactorRevocationEvent(
198
                $this->identity->getId(),
199
                $this->identity->getInstitution(),
200
                $this->id,
201
                $this->type,
202
                $this->secondFactorIdentifier,
203
                $authorityId
204
            )
205
        );
206
    }
207
208
    /**
209
     * @return VettedSecondFactor