Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 1028-1036 (lines=9) @@
1025
     *
1026
     * @param AppointedAsRaaEvent $event
1027
     */
1028
    protected function applyIdentityAccreditedAsRaEvent(IdentityAccreditedAsRaEvent $event)
1029
    {
1030
        $this->registrationAuthorities->set($event->identityInstitution, RegistrationAuthority::accreditWith(
1031
            $event->registrationAuthorityRole,
1032
            $event->location,
1033
            $event->contactInformation,
1034
            $event->identityInstitution
1035
        ));
1036
    }
1037
1038
    /**
1039
     * This method is kept to be backwards compatible for changes before FGA
@@ 1043-1051 (lines=9) @@
1040
     *
1041
     * @param IdentityAccreditedAsRaaEvent $event
1042
     */
1043
    protected function applyIdentityAccreditedAsRaaEvent(IdentityAccreditedAsRaaEvent $event)
1044
    {
1045
        $this->registrationAuthorities->set($event->identityInstitution, RegistrationAuthority::accreditWith(
1046
            $event->registrationAuthorityRole,
1047
            $event->location,
1048
            $event->contactInformation,
1049
            $event->identityInstitution
1050
        ));
1051
    }
1052
1053
    /**
1054
     * This method is kept to be backwards compatible for changes before FGA