Code Duplication    Length = 5-5 lines in 4 locations

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

@@ 657-661 (lines=5) @@
654
					}
655
656
					// Included.
657
					if ( false !== $importable_content && in_array( 'itinerary_included', $importable_content ) && isset( $day['included'] ) && '' !== $day['included'] ) {
658
						$current_day['included'] = $day['included'];
659
					} else {
660
						$current_day['included'] = '';
661
					}
662
663
					// Excluded.
664
					if ( false !== $importable_content && in_array( 'itinerary_excluded', $importable_content ) && isset( $day['excluded'] ) && '' !== $day['excluded'] ) {
@@ 664-668 (lines=5) @@
661
					}
662
663
					// Excluded.
664
					if ( false !== $importable_content && in_array( 'itinerary_excluded', $importable_content ) && isset( $day['excluded'] ) && '' !== $day['excluded'] ) {
665
						$current_day['excluded'] = $day['excluded'];
666
					} else {
667
						$current_day['excluded'] = '';
668
					}
669
670
					$this->set_itinerary_day( $current_day,$id );
671
					$day_counter++;
@@ 715-719 (lines=5) @@
712
				}
713
714
				//Included
715
				if ( false !== $importable_content && in_array( 'itinerary_included', $importable_content ) && isset( $leg['included'] ) && '' !== $leg['included'] ) {
716
					$current_day['included'] = $leg['included'];
717
				} else {
718
					$current_day['included'] = '';
719
				}
720
721
				//Excluded
722
				if ( false !== $importable_content && in_array( 'itinerary_excluded', $importable_content ) && isset( $leg['excluded'] ) && '' !== $leg['excluded'] ) {
@@ 722-726 (lines=5) @@
719
				}
720
721
				//Excluded
722
				if ( false !== $importable_content && in_array( 'itinerary_excluded', $importable_content ) && isset( $leg['excluded'] ) && '' !== $leg['excluded'] ) {
723
					$current_day['excluded'] = $leg['excluded'];
724
				} else {
725
					$current_day['excluded'] = '';
726
				}
727
728
				$this->set_itinerary_day( $current_day,$id );
729
				$day_counter = $next_day_count;