Code Duplication    Length = 5-5 lines in 2 locations

classes/class-lsx-wetu-importer-accommodation.php 1 location

@@ 302-306 (lines=5) @@
299
300
				$accommodation = array();
301
				$current_accommodation = $this->find_current_accommodation();
302
				if ( ! empty( $current_accommodation ) ) {
303
					foreach ( $current_accommodation as $cs_key => $ccs_id ) {
304
						$accommodation[] = $this->prepare_row_attributes( $cs_key, $ccs_id->post_id );
305
					}
306
				}
307
308
				// Run through each accommodation and use it.
309
				if ( ! empty( $accommodation ) ) {

classes/class-lsx-wetu-importer-destination.php 1 location

@@ 360-364 (lines=5) @@
357
358
				$accommodation = array();
359
				$current_accommodation = $this->find_current_accommodation( 'destination' );
360
				if ( ! empty( $current_accommodation ) ) {
361
					foreach ( $current_accommodation as $cs_key => $ccs_id ) {
362
						$accommodation[] = $this->prepare_row_attributes( $cs_key, $ccs_id->post_id );
363
					}
364
				}
365
366
				// Run through each accommodation and use it.
367
				if ( ! empty( $accommodation ) ) {