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

@@ 689-694 (lines=6) @@
686
		'contact_checkbox',
687
		);
688
689
	foreach ($keys as $key) {
690
		if(($key != 'title2') && ($key != 'description2') && ($key != 'calendar_additional2') ){
691
			$event->$key = $e->$key;
692
		}
693
	}
694
695
	if ($event->save()) {
696
		error_log('save');
697
		if (!$event_guid && $event->web_conference) {