Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 170-176 (lines=7) @@
167
        ];
168
    }
169
170
    public function getSensitiveData()
171
    {
172
        return (new SensitiveData)
173
            ->withCommonName($this->commonName)
174
            ->withEmail($this->email)
175
            ->withSecondFactorIdentifier($this->gssfId, new SecondFactorType((string) $this->stepupProvider));
176
    }
177
178
    public function setSensitiveData(SensitiveData $sensitiveData)
179
    {

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

@@ 161-167 (lines=7) @@
158
        ];
159
    }
160
161
    public function getSensitiveData()
162
    {
163
        return (new SensitiveData)
164
            ->withCommonName($this->commonName)
165
            ->withEmail($this->email)
166
            ->withSecondFactorIdentifier($this->gssfId, new SecondFactorType((string) $this->stepupProvider));
167
    }
168
169
    public function setSensitiveData(SensitiveData $sensitiveData)
170
    {