Code Duplication    Length = 8-9 lines in 2 locations

core/db_classes/EE_Import.class.php 2 locations

@@ 537-545 (lines=9) @@
534
535
					if( $model_name_field ){
536
						$value_of_model_name_field = $model_object_data[ $model_name_field->get_name() ];
537
						if( $value_of_model_name_field == $model_pointed_to_by_fk ) {
538
							$model_object_data[ $field_obj->get_name() ] = $this->_find_mapping_in(
539
									$model_object_data[ $field_obj->get_name() ],
540
									$model_pointed_to_by_fk,
541
									$old_db_to_new_db_mapping,
542
									$export_from_site_a_to_b );
543
								$found_a_mapping = true;
544
								break;
545
						}
546
					}else{
547
						$model_object_data[ $field_obj->get_name() ] = $this->_find_mapping_in(
548
								$model_object_data[ $field_obj->get_name() ],
@@ 546-553 (lines=8) @@
543
								$found_a_mapping = true;
544
								break;
545
						}
546
					}else{
547
						$model_object_data[ $field_obj->get_name() ] = $this->_find_mapping_in(
548
								$model_object_data[ $field_obj->get_name() ],
549
								$model_pointed_to_by_fk,
550
								$old_db_to_new_db_mapping,
551
								$export_from_site_a_to_b );
552
						$found_a_mapping = true;
553
					}
554
					//once we've found a mapping for this field no need to continue
555
					if( $found_a_mapping ) {
556
						break;