Code Duplication    Length = 17-17 lines in 3 locations

core/EE_Deprecated.core.php 3 locations

@@ 1002-1018 (lines=17) @@
999
1000
add_filter(
1001
	'FHEE__EventEspresso_modules_events_archive_EventsArchiveIframe__display__css',
1002
	function($event_list_iframe_css) {
1003
		if ( ! has_filter( 'FHEE__EventsArchiveIframe__event_list_iframe__css' )) {
1004
			return $event_list_iframe_css;
1005
		}
1006
		deprecated_espresso_action_or_filter_doing_it_wrong(
1007
			'FHEE__EventsArchiveIframe__event_list_iframe__css',
1008
			'FHEE__EventEspresso_modules_events_archive_EventsArchiveIframe__display__css',
1009
			'\EventEspresso\modules\events_archive\EventsArchiveIframe::display()',
1010
			'4.9.14',
1011
			'5.0.0',
1012
			'filter'
1013
		);
1014
		return apply_filters(
1015
			'FHEE__EventsArchiveIframe__event_list_iframe__css',
1016
			$event_list_iframe_css
1017
		);
1018
	}
1019
);
1020
add_filter(
1021
	'FHEE__EventEspresso_modules_events_archive_EventsArchiveIframe__display__js',
@@ 1022-1038 (lines=17) @@
1019
);
1020
add_filter(
1021
	'FHEE__EventEspresso_modules_events_archive_EventsArchiveIframe__display__js',
1022
	function($event_list_iframe_js) {
1023
		if ( ! has_filter( 'FHEE__EED_Ticket_Selector__ticket_selector_iframe__js' )) {
1024
			return $event_list_iframe_js;
1025
		}
1026
		deprecated_espresso_action_or_filter_doing_it_wrong(
1027
			'FHEE__EED_Ticket_Selector__ticket_selector_iframe__js',
1028
			'FHEE__EventEspresso_modules_events_archive_EventsArchiveIframe__display__js',
1029
			'\EventEspresso\modules\events_archive\EventsArchiveIframe::display()',
1030
			'4.9.14',
1031
			'5.0.0',
1032
			'filter'
1033
		);
1034
		return apply_filters(
1035
			'FHEE__EED_Ticket_Selector__ticket_selector_iframe__js',
1036
			$event_list_iframe_js
1037
		);
1038
	}
1039
);
1040
add_action(
1041
	'AHEE__EE_Capabilities__addCaps__complete',
@@ 1062-1078 (lines=17) @@
1059
1060
add_filter(
1061
	'FHEE_EventEspresso_core_services_commands_attendee_CreateAttendeeCommandHandler__findExistingAttendee__existing_attendee',
1062
	function($existing_attendee, $registration, $attendee_data) {
1063
		if ( ! has_filter( 'FHEE_EE_Single_Page_Checkout__save_registration_items__find_existing_attendee' )) {
1064
			return $existing_attendee;
1065
		}
1066
		deprecated_espresso_action_or_filter_doing_it_wrong(
1067
			'FHEE_EE_Single_Page_Checkout__save_registration_items__find_existing_attendee',
1068
			'FHEE_EventEspresso_core_services_commands_attendee_CreateAttendeeCommandHandler__findExistingAttendee__existing_attendee',
1069
			'\EventEspresso\core\services\commands\attendee\CreateAttendeeCommandHandler::findExistingAttendee()',
1070
			'4.9.34',
1071
			'5.0.0',
1072
			'filter'
1073
		);
1074
		return apply_filters(
1075
            'FHEE_EE_Single_Page_Checkout__save_registration_items__find_existing_attendee',
1076
            $existing_attendee, $registration, $attendee_data
1077
        );
1078
	},
1079
	10,3
1080
);
1081