Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 180-186 (lines=7) @@
177
            ->withVettingType($this->vettingType);
178
    }
179
180
    public function setSensitiveData(SensitiveData $sensitiveData)
181
    {
182
        $this->email          = $sensitiveData->getEmail();
183
        $this->commonName     = $sensitiveData->getCommonName();
184
        $this->secondFactorIdentifier = $sensitiveData->getSecondFactorIdentifier();
185
        $this->vettingType = $sensitiveData->getVettingType();
186
    }
187
}
188

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

@@ 183-189 (lines=7) @@
180
            ->withVettingType($this->vettingType);
181
    }
182
183
    public function setSensitiveData(SensitiveData $sensitiveData)
184
    {
185
        $this->email          = $sensitiveData->getEmail();
186
        $this->commonName     = $sensitiveData->getCommonName();
187
        $this->secondFactorIdentifier = $sensitiveData->getSecondFactorIdentifier();
188
        $this->vettingType = $sensitiveData->getVettingType();
189
    }
190
}
191