Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 1037-1045 (lines=9) @@
1034
     *
1035
     * @param AppointedAsRaaEvent $event
1036
     */
1037
    protected function applyIdentityAccreditedAsRaEvent(IdentityAccreditedAsRaEvent $event)
1038
    {
1039
        $this->registrationAuthorities->set($event->identityInstitution, RegistrationAuthority::accreditWith(
1040
            $event->registrationAuthorityRole,
1041
            $event->location,
1042
            $event->contactInformation,
1043
            $event->identityInstitution
1044
        ));
1045
    }
1046
1047
    /**
1048
     * This method is kept to be backwards compatible for changes before FGA
@@ 1052-1060 (lines=9) @@
1049
     *
1050
     * @param IdentityAccreditedAsRaaEvent $event
1051
     */
1052
    protected function applyIdentityAccreditedAsRaaEvent(IdentityAccreditedAsRaaEvent $event)
1053
    {
1054
        $this->registrationAuthorities->set($event->identityInstitution, RegistrationAuthority::accreditWith(
1055
            $event->registrationAuthorityRole,
1056
            $event->location,
1057
            $event->contactInformation,
1058
            $event->identityInstitution
1059
        ));
1060
    }
1061
1062
    /**
1063
     * This method is kept to be backwards compatible for changes before FGA