Code Duplication    Length = 18-18 lines in 2 locations

class.jetpack-idc.php 2 locations

@@ 585-602 (lines=18) @@
582
		return apply_filters( 'jetpack_idc_second_step_header_lead', $string );
583
	}
584
585
	function get_migrate_site_action_explanation() {
586
		$html = wp_kses(
587
			sprintf(
588
				__(
589
					'Yes. <a href="%1$s">%2$s</a> is replacing <a href="%3$s">%4$s</a>. I would like to
590
					migrate my stats and subscribers from <a href="%3$s">%4$s</a> to <a href="%1$s">%2$s</a>.',
591
					'jetpack'
592
				),
593
				esc_url( get_home_url() ),
594
				self::prepare_url_for_display( get_home_url() ),
595
				esc_url( self::$wpcom_home_url ),
596
				untrailingslashit( Jetpack::normalize_url_protocol_agnostic( esc_url_raw( self::$wpcom_home_url ) ) )
597
			),
598
			array( 'a' => array( 'href' => array() ) )
599
		);
600
601
		/**
602
		 * Allows overriding of the default text for explaining the migrate site action.
603
		 *
604
		 * @since 4.4.0
605
		 *
@@ 624-641 (lines=18) @@
621
		return apply_filters( 'jetpack_idc_migrate_site_button_text', $string );
622
	}
623
624
	function get_start_fresh_action_explanation() {
625
		$html = wp_kses(
626
			sprintf(
627
				__(
628
					'No. <a href="%1$s">%2$s</a> is a new and different website that\'s separate from
629
					<a href="%3$s">%4$s</a>. It requires  a new connection to WordPress.com for new stats and subscribers.',
630
					'jetpack'
631
				),
632
				esc_url( get_home_url() ),
633
				self::prepare_url_for_display( get_home_url() ),
634
				esc_url( self::$wpcom_home_url ),
635
				untrailingslashit( Jetpack::normalize_url_protocol_agnostic( esc_url_raw( self::$wpcom_home_url ) ) )
636
			),
637
			array( 'a' => array( 'href' => array() ) )
638
		);
639
640
		/**
641
		 * Allows overriding of the default text for explaining the start fresh action.
642
		 *
643
		 * @since 4.4.0
644
		 *