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

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

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

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