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

@@ 608-613 (lines=6) @@
605
		'contact_checkbox',
606
		);
607
608
	foreach ($keys as $key) {
609
		if(($key != 'title2') && ($key != 'description2') && ($key != 'calendar_additional2') ){
610
			$event->$key = $e->$key;
611
		}
612
	}
613
614
	if ($event->save()) {
615
		error_log('save');
616
		if (!$event_guid && $event->web_conference) {