Code Duplication    Length = 8-9 lines in 2 locations

classes/helpers/FrmXMLHelper.php 2 locations

@@ 333-341 (lines=9) @@
330
331
					unset( $form_fields[ $form_fields[ $f['field_key'] ] ] ); //unset old field id
332
					unset( $form_fields[ $f['field_key'] ] ); //unset old field key
333
				} else {
334
					$new_id = FrmField::create( $f );
335
					if ( $new_id == false ) {
336
						continue;
337
					}
338
339
		            // if no matching field id or key in this form, create the field
340
		            $imported['imported']['fields']++;
341
		        }
342
			} else {
343
				$new_id = FrmField::create( $f );
344
				if ( $new_id == false ) {
@@ 342-349 (lines=8) @@
339
		            // if no matching field id or key in this form, create the field
340
		            $imported['imported']['fields']++;
341
		        }
342
			} else {
343
				$new_id = FrmField::create( $f );
344
				if ( $new_id == false ) {
345
					continue;
346
				}
347
348
	            $imported['imported']['fields']++;
349
		    }
350
351
			unset($field, $new_id);
352
		}