Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 961-969 (lines=9) @@
958
     *
959
     * @param AppointedAsRaaEvent $event
960
     */
961
    protected function applyIdentityAccreditedAsRaEvent(IdentityAccreditedAsRaEvent $event)
962
    {
963
        $this->registrationAuthorities->set($event->identityInstitution, RegistrationAuthority::accreditWith(
964
            $event->registrationAuthorityRole,
965
            $event->location,
966
            $event->contactInformation,
967
            $event->identityInstitution
968
        ));
969
    }
970
971
    /**
972
     * This method is kept to be backwards compatible for changes before FGA
@@ 976-984 (lines=9) @@
973
     *
974
     * @param IdentityAccreditedAsRaaEvent $event
975
     */
976
    protected function applyIdentityAccreditedAsRaaEvent(IdentityAccreditedAsRaaEvent $event)
977
    {
978
        $this->registrationAuthorities->set($event->identityInstitution, RegistrationAuthority::accreditWith(
979
            $event->registrationAuthorityRole,
980
            $event->location,
981
            $event->contactInformation,
982
            $event->identityInstitution
983
        ));
984
    }
985
986
    /**
987
     * This method is kept to be backwards compatible for changes before FGA