Code Duplication    Length = 6-6 lines in 2 locations

mod/event_calendar/models/model.php 1 location

@@ 234-239 (lines=6) @@
231
		'contact_checkbox',
232
		);
233
234
	foreach ($keys as $key) {
235
		if(($key != 'title2') && ($key != 'description2') && ($key != 'calendar_additional2') ){
236
			$event->$key = $e->$key;
237
		}
238
239
	}
240
241
	if ($event_calendar_spots_display == 'yes') {
242
		$event->spots = trim(get_input('spots'));

mod/gc_mobile_api/models/event.php 1 location

@@ 714-719 (lines=6) @@
711
		'contact_checkbox',
712
		);
713
714
	foreach ($keys as $key) {
715
		if(($key != 'title2') && ($key != 'description2') && ($key != 'calendar_additional2') ){
716
			$event->$key = $e->$key;
717
		}
718
	}
719
720
	if ($event->save()) {
721
		error_log('save');
722
		if (!$event_guid && $event->web_conference) {