Code Duplication    Length = 9-9 lines in 2 locations

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

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