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/VerifiedSecondFactor.php 1 location

@@ 147-158 (lines=12) @@
144
        );
145
    }
146
147
    public function revoke()
148
    {
149
        $this->apply(
150
            new VerifiedSecondFactorRevokedEvent(
151
                $this->identity->getId(),
152
                $this->identity->getInstitution(),
153
                $this->id,
154
                $this->type,
155
                $this->secondFactorIdentifier
156
            )
157
        );
158
    }
159
160
    public function complyWithRevocation(IdentityId $authorityId)
161
    {

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

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