Code Duplication    Length = 5-5 lines in 2 locations

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

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