Code Duplication    Length = 9-9 lines in 2 locations

src/Surfnet/Stepup/Identity/Identity.php 2 locations

@@ 1036-1044 (lines=9) @@
1033
        $this->vettedSecondFactors->remove((string)$event->secondFactorId);
1034
    }
1035
1036
    protected function applyIdentityAccreditedAsRaForInstitutionEvent(IdentityAccreditedAsRaForInstitutionEvent $event)
1037
    {
1038
        $this->registrationAuthorities->set($event->raInstitution, RegistrationAuthority::accreditWith(
1039
            $event->registrationAuthorityRole,
1040
            $event->location,
1041
            $event->contactInformation,
1042
            $event->raInstitution
1043
        ));
1044
    }
1045
1046
    protected function applyIdentityAccreditedAsRaaForInstitutionEvent(IdentityAccreditedAsRaaForInstitutionEvent $event)
1047
    {
@@ 1046-1054 (lines=9) @@
1043
        ));
1044
    }
1045
1046
    protected function applyIdentityAccreditedAsRaaForInstitutionEvent(IdentityAccreditedAsRaaForInstitutionEvent $event)
1047
    {
1048
        $this->registrationAuthorities->set($event->raInstitution, RegistrationAuthority::accreditWith(
1049
            $event->registrationAuthorityRole,
1050
            $event->location,
1051
            $event->contactInformation,
1052
            $event->raInstitution
1053
        ));
1054
    }
1055
1056
    protected function applyRegistrationAuthorityInformationAmendedForInstitutionEvent(
1057
        RegistrationAuthorityInformationAmendedForInstitutionEvent $event