Code Duplication    Length = 11-11 lines in 2 locations

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

@@ 415-425 (lines=11) @@
412
	/**
413
	 * Saves the queue to the option.
414
	 */
415
	public function remove_from_queue( $id ) {
416
		if ( ! empty( $this->queued_imports ) ) {
417
			$key = array_search( $id, $this->queued_imports );
418
			if ( false !== $key ) {
419
				unset( $this->queued_imports[ $key ] );
420
421
				delete_option( 'lsx_wetu_importer_que' );
422
				update_option( 'lsx_wetu_importer_que', $this->queued_imports );
423
			}
424
		}
425
	}
426
427
	/**
428
	 * Connect to wetu

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

@@ 521-531 (lines=11) @@
518
	/**
519
	 * Saves the queue to the option.
520
	 */
521
	public function remove_from_queue( $id ) {
522
		if ( ! empty( $this->queued_imports ) ) {
523
			$key = array_search( $id, $this->queued_imports );
524
			if ( false !== $key ) {
525
				unset( $this->queued_imports[ $key ] );
526
527
				delete_option( 'lsx_wetu_importer_que' );
528
				update_option( 'lsx_wetu_importer_que', $this->queued_imports );
529
			}
530
		}
531
	}
532
533
	/**
534
	 * Connect to wetu