Code Duplication    Length = 12-12 lines in 4 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

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

src/Surfnet/Stepup/Identity/Entity/VettedSecondFactor.php 2 locations

@@ 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 revokeAll()
106
    {
@@ 105-116 (lines=12) @@
102
        );
103
    }
104
105
    public function revokeAll()
106
    {
107
        $this->apply(
108
            new VettedSecondFactorsAllRevokedEvent(
109
                $this->identity->getId(),
110
                $this->identity->getInstitution(),
111
                $this->id,
112
                $this->type,
113
                $this->secondFactorIdentifier
114
            )
115
        );
116
    }
117
118
    public function complyWithRevocation(IdentityId $authorityId)
119
    {