Code Duplication    Length = 5-5 lines in 4 locations

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

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