Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 652-656 (lines=5) @@
649
					}
650
651
					// Destination.
652
					if ( false !== $current_destination ) {
653
						$current_day['destination_to_tour'] = array( $current_destination );
654
					} else {
655
						$current_day['destination_to_tour'] = array();
656
					}
657
658
					// Included.
659
					if ( false !== $importable_content && in_array( 'itinerary_included', $importable_content ) && isset( $day['included'] ) && '' !== $day['included'] ) {
@@ 710-714 (lines=5) @@
707
				}
708
709
				// Destination.
710
				if ( false !== $current_destination ) {
711
					$current_day['destination_to_tour'] = array( $current_destination );
712
				} else {
713
					$current_day['destination_to_tour'] = array();
714
				}
715
716
				//Included
717
				if ( false !== $importable_content && in_array( 'itinerary_included', $importable_content ) && isset( $leg['included'] ) && '' !== $leg['included'] ) {