Code Duplication    Length = 9-9 lines in 2 locations

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

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