Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 1010-1018 (lines=9) @@
1007
     *
1008
     * @param AppointedAsRaaEvent $event
1009
     */
1010
    protected function applyIdentityAccreditedAsRaEvent(IdentityAccreditedAsRaEvent $event)
1011
    {
1012
        $this->registrationAuthorities->set($event->identityInstitution, RegistrationAuthority::accreditWith(
1013
            $event->registrationAuthorityRole,
1014
            $event->location,
1015
            $event->contactInformation,
1016
            $event->identityInstitution
1017
        ));
1018
    }
1019
1020
    /**
1021
     * This method is kept to be backwards compatible for changes before FGA
@@ 1025-1033 (lines=9) @@
1022
     *
1023
     * @param IdentityAccreditedAsRaaEvent $event
1024
     */
1025
    protected function applyIdentityAccreditedAsRaaEvent(IdentityAccreditedAsRaaEvent $event)
1026
    {
1027
        $this->registrationAuthorities->set($event->identityInstitution, RegistrationAuthority::accreditWith(
1028
            $event->registrationAuthorityRole,
1029
            $event->location,
1030
            $event->contactInformation,
1031
            $event->identityInstitution
1032
        ));
1033
    }
1034
1035
    /**
1036
     * This method is kept to be backwards compatible for changes before FGA