Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 316-320 (lines=5) @@
313
314
				$current_accommodation = $this->find_current_accommodation();
315
316
				if ( ! empty( $current_accommodation ) ) {
317
					foreach ( $current_accommodation as $cs_key => $ccs_id ) {
318
						$accommodation[] = $this->prepare_row_attributes( $cs_key, $ccs_id->post_id );
319
					}
320
				}
321
322
				if ( ! empty( $accommodation ) ) {
323

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

@@ 380-384 (lines=5) @@
377
				$accommodation = array();
378
379
				$current_accommodation = $this->find_current_accommodation( 'destination' );
380
				if ( ! empty( $current_accommodation ) ) {
381
					foreach ( $current_accommodation as $cs_key => $ccs_id ) {
382
						$accommodation[] = $this->prepare_row_attributes( $cs_key, $ccs_id->post_id );
383
					}
384
				}
385
386
				if ( ! empty( $accommodation ) ) {
387