Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 143-149 (lines=7) @@
140
        ];
141
    }
142
143
    public function getSensitiveData()
144
    {
145
        return (new SensitiveData)
146
            ->withCommonName($this->commonName)
147
            ->withEmail($this->email)
148
            ->withSecondFactorIdentifier($this->gssfId, new SecondFactorType((string) $this->stepupProvider));
149
    }
150
151
    public function setSensitiveData(SensitiveData $sensitiveData)
152
    {

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
    {