Code Duplication    Length = 5-5 lines in 4 locations

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

@@ 744-748 (lines=5) @@
741
					}
742
743
					// Included.
744
					if ( false !== $importable_content && in_array( 'itinerary_included', $importable_content ) && isset( $day['included'] ) && '' !== $day['included'] ) {
745
						$current_day['included'] = $day['included'];
746
					} else {
747
						$current_day['included'] = '';
748
					}
749
750
					// Excluded.
751
					if ( false !== $importable_content && in_array( 'itinerary_excluded', $importable_content ) && isset( $day['excluded'] ) && '' !== $day['excluded'] ) {
@@ 751-755 (lines=5) @@
748
					}
749
750
					// Excluded.
751
					if ( false !== $importable_content && in_array( 'itinerary_excluded', $importable_content ) && isset( $day['excluded'] ) && '' !== $day['excluded'] ) {
752
						$current_day['excluded'] = $day['excluded'];
753
					} else {
754
						$current_day['excluded'] = '';
755
					}
756
757
					$this->set_itinerary_day( $current_day,$id );
758
					$day_counter++;
@@ 802-806 (lines=5) @@
799
				}
800
801
				//Included
802
				if ( false !== $importable_content && in_array( 'itinerary_included', $importable_content ) && isset( $leg['included'] ) && '' !== $leg['included'] ) {
803
					$current_day['included'] = $leg['included'];
804
				} else {
805
					$current_day['included'] = '';
806
				}
807
808
				//Excluded
809
				if ( false !== $importable_content && in_array( 'itinerary_excluded', $importable_content ) && isset( $leg['excluded'] ) && '' !== $leg['excluded'] ) {
@@ 809-813 (lines=5) @@
806
				}
807
808
				//Excluded
809
				if ( false !== $importable_content && in_array( 'itinerary_excluded', $importable_content ) && isset( $leg['excluded'] ) && '' !== $leg['excluded'] ) {
810
					$current_day['excluded'] = $leg['excluded'];
811
				} else {
812
					$current_day['excluded'] = '';
813
				}
814
815
				$this->set_itinerary_day( $current_day,$id );
816
				$day_counter = $next_day_count;