Code Duplication    Length = 12-12 lines in 3 locations

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

@@ 156-167 (lines=12) @@
153
        );
154
    }
155
156
    public function revoke()
157
    {
158
        $this->apply(
159
            new UnverifiedSecondFactorRevokedEvent(
160
                $this->identity->getId(),
161
                $this->identity->getInstitution(),
162
                $this->id,
163
                $this->type,
164
                $this->secondFactorIdentifier
165
            )
166
        );
167
    }
168
169
    public function complyWithRevocation(IdentityId $authorityId)
170
    {

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

@@ 92-103 (lines=12) @@
89
        return $this->id;
90
    }
91
92
    public function revoke()
93
    {
94
        $this->apply(
95
            new VettedSecondFactorRevokedEvent(
96
                $this->identity->getId(),
97
                $this->identity->getInstitution(),
98
                $this->id,
99
                $this->type,
100
                $this->secondFactorIdentifier
101
            )
102
        );
103
    }
104
105
    public function complyWithRevocation(IdentityId $authorityId)
106
    {

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

@@ 181-192 (lines=12) @@
178
        );
179
    }
180
181
    public function revoke()
182
    {
183
        $this->apply(
184
            new VerifiedSecondFactorRevokedEvent(
185
                $this->identity->getId(),
186
                $this->identity->getInstitution(),
187
                $this->id,
188
                $this->type,
189
                $this->secondFactorIdentifier
190
            )
191
        );
192
    }
193
194
    public function complyWithRevocation(IdentityId $authorityId)
195
    {