Code Duplication    Length = 5-5 lines in 2 locations

classes/class-wetu-importer-tours.php 2 locations

@@ 714-718 (lines=5) @@
711
					}
712
713
					//Destination
714
					if ( false !== $current_destination ) {
715
						$current_day['destination_to_tour'] = array( $current_destination );
716
					} else {
717
						$current_day['destination_to_tour'] = array();
718
					}
719
720
					//Included
721
					if ( false !== $importable_content && in_array( 'itinerary_included',$importable_content ) && isset( $day['included'] ) && '' !== $day['included'] ) {
@@ 772-776 (lines=5) @@
769
				}
770
771
				//Destination
772
				if ( false !== $current_destination ) {
773
					$current_day['destination_to_tour'] = array( $current_destination );
774
				} else {
775
					$current_day['destination_to_tour'] = array();
776
				}
777
778
				//Included
779
				if ( false !== $importable_content && in_array( 'itinerary_included',$importable_content ) && isset( $leg['included'] ) && '' !== $leg['included'] ) {