Code Duplication    Length = 5-5 lines in 4 locations

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

@@ 693-697 (lines=5) @@
690
					//print_r('<pre>');print_r($day['notes']);print_r('</pre>');
691
692
					//Description
693
					if ( false !== $importable_content && in_array( 'itinerary_description',$importable_content ) && isset( $day['notes'] ) ) {
694
						$current_day['description'] = $day['notes'];
695
					} else {
696
						$current_day['description'] = '';
697
					}
698
699
					//Itinerary Gallery
700
					if ( false !== $importable_content && in_array( 'itinerary_gallery',$importable_content ) && isset( $day['images'] ) ) {
@@ 721-725 (lines=5) @@
718
					}
719
720
					//Included
721
					if ( false !== $importable_content && in_array( 'itinerary_included',$importable_content ) && isset( $day['included'] ) && '' !== $day['included'] ) {
722
						$current_day['included'] = $day['included'];
723
					} else {
724
						$current_day['included'] = '';
725
					}
726
727
					//Excluded
728
					if ( false !== $importable_content && in_array( 'itinerary_excluded',$importable_content ) && isset( $day['excluded'] ) && '' !== $day['excluded'] ) {
@@ 728-732 (lines=5) @@
725
					}
726
727
					//Excluded
728
					if ( false !== $importable_content && in_array( 'itinerary_excluded',$importable_content ) && isset( $day['excluded'] ) && '' !== $day['excluded'] ) {
729
						$current_day['excluded'] = $day['excluded'];
730
					} else {
731
						$current_day['excluded'] = '';
732
					}
733
734
					$this->set_itinerary_day( $current_day,$id );
735
					$day_counter++;
@@ 751-755 (lines=5) @@
748
				}
749
750
				//Description
751
				if ( false !== $importable_content && in_array( 'itinerary_description',$importable_content ) && isset( $leg['notes'] ) ) {
752
					$current_day['description'] = $leg['notes'];
753
				} else {
754
					$current_day['description'] = '';
755
				}
756
757
				//Itinerary Gallery
758
				if ( false !== $importable_content && in_array( 'itinerary_gallery',$importable_content ) && isset( $leg['images'] ) ) {