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

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