Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 1054-1062 (lines=9) @@
1051
     *
1052
     * @param AppointedAsRaaEvent $event
1053
     */
1054
    protected function applyIdentityAccreditedAsRaEvent(IdentityAccreditedAsRaEvent $event)
1055
    {
1056
        $this->registrationAuthorities->set($event->identityInstitution, RegistrationAuthority::accreditWith(
1057
            $event->registrationAuthorityRole,
1058
            $event->location,
1059
            $event->contactInformation,
1060
            $event->identityInstitution
1061
        ));
1062
    }
1063
1064
    /**
1065
     * This method is kept to be backwards compatible for changes before FGA
@@ 1069-1077 (lines=9) @@
1066
     *
1067
     * @param IdentityAccreditedAsRaaEvent $event
1068
     */
1069
    protected function applyIdentityAccreditedAsRaaEvent(IdentityAccreditedAsRaaEvent $event)
1070
    {
1071
        $this->registrationAuthorities->set($event->identityInstitution, RegistrationAuthority::accreditWith(
1072
            $event->registrationAuthorityRole,
1073
            $event->location,
1074
            $event->contactInformation,
1075
            $event->identityInstitution
1076
        ));
1077
    }
1078
1079
    /**
1080
     * This method is kept to be backwards compatible for changes before FGA