Code Duplication    Length = 8-8 lines in 2 locations

src/Surfnet/Stepup/Identity/Event/SecondFactorVettedEvent.php 1 location

@@ 171-178 (lines=8) @@
168
        ];
169
    }
170
171
    public function getSensitiveData()
172
    {
173
        return (new SensitiveData)
174
            ->withCommonName($this->commonName)
175
            ->withEmail($this->email)
176
            ->withSecondFactorIdentifier($this->secondFactorIdentifier, $this->secondFactorType)
177
            ->withVettingType($this->vettingType);
178
    }
179
180
    public function setSensitiveData(SensitiveData $sensitiveData)
181
    {

src/Surfnet/Stepup/Identity/Event/SecondFactorVettedWithoutTokenProofOfPossession.php 1 location

@@ 174-181 (lines=8) @@
171
        ];
172
    }
173
174
    public function getSensitiveData()
175
    {
176
        return (new SensitiveData)
177
            ->withCommonName($this->commonName)
178
            ->withEmail($this->email)
179
            ->withSecondFactorIdentifier($this->secondFactorIdentifier, $this->secondFactorType)
180
            ->withVettingType($this->vettingType);
181
    }
182
183
    public function setSensitiveData(SensitiveData $sensitiveData)
184
    {