Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 371-380 (lines=10) @@
368
		die();
369
	}
370
371
	public function prepare_row_attributes( $cs_key, $ccs_id ) {
372
		$row_item = array(
373
			'id' => $cs_key,
374
			'type' => 'Accommodation',
375
			'name' => get_the_title( $ccs_id ),
376
			'last_modified' => date( 'Y-m-d', strtotime( 'now' ) ),
377
			'post_id' => $ccs_id,
378
		);
379
		return $row_item;
380
	}
381
382
	/**
383
	 * Formats the row for output on the screen.

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

@@ 431-440 (lines=10) @@
428
		die();
429
	}
430
431
	public function prepare_row_attributes( $cs_key, $ccs_id ) {
432
		$row_item = array(
433
			'id' => $cs_key,
434
			'type' => 'Destination',
435
			'name' => get_the_title( $ccs_id ),
436
			'last_modified' => date( 'Y-m-d', strtotime( 'now' ) ),
437
			'post_id' => $ccs_id,
438
		);
439
		return $row_item;
440
	}
441
442
	/**
443
	 * Formats the row for output on the screen.