Code Duplication    Length = 6-6 lines in 2 locations

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) {

mod/event_calendar/models/model.php 1 location

@@ 206-211 (lines=6) @@
203
		'email',
204
		);
205
206
	foreach ($keys as $key) {
207
		if(($key != 'title2') && ($key != 'description2') && ($key != 'calendar_additional2') ){
208
			$event->$key = $e->$key;
209
		}
210
211
	}
212
213
	if ($event_calendar_spots_display == 'yes') {
214
		$event->spots = trim(get_input('spots'));