Code Duplication    Length = 18-18 lines in 2 locations

class.jetpack-idc.php 2 locations

@@ 564-581 (lines=18) @@
561
		return apply_filters( 'jetpack_idc_second_step_header_lead', $string );
562
	}
563
564
	function get_migrate_site_action_explanation() {
565
		$html = wp_kses(
566
			sprintf(
567
				__(
568
					'Yes. <a href="%1$s">%2$s</a> is replacing <a href="%3$s">%4$s</a>. I would like to
569
					migrate my stats and subscribers from <a href="%3$s">%4$s</a> to <a href="%1$s">%2$s</a>.',
570
					'jetpack'
571
				),
572
				esc_url( get_home_url() ),
573
				self::prepare_url_for_display( get_home_url() ),
574
				esc_url( self::$wpcom_home_url ),
575
				untrailingslashit( Jetpack::normalize_url_protocol_agnostic( esc_url_raw( self::$wpcom_home_url ) ) )
576
			),
577
			array( 'a' => array( 'href' => array() ) )
578
		);
579
580
		/**
581
		 * Allows overriding of the default text for explaining the migrate site action.
582
		 *
583
		 * @since 4.4.0
584
		 *
@@ 603-620 (lines=18) @@
600
		return apply_filters( 'jetpack_idc_migrate_site_button_text', $string );
601
	}
602
603
	function get_start_fresh_action_explanation() {
604
		$html = wp_kses(
605
			sprintf(
606
				__(
607
					'No. <a href="%1$s">%2$s</a> is a new and different website that\'s separate from
608
					<a href="%3$s">%4$s</a>. It requires  a new connection to WordPress.com for new stats and subscribers.',
609
					'jetpack'
610
				),
611
				esc_url( get_home_url() ),
612
				self::prepare_url_for_display( get_home_url() ),
613
				esc_url( self::$wpcom_home_url ),
614
				untrailingslashit( Jetpack::normalize_url_protocol_agnostic( esc_url_raw( self::$wpcom_home_url ) ) )
615
			),
616
			array( 'a' => array( 'href' => array() ) )
617
		);
618
619
		/**
620
		 * Allows overriding of the default text for explaining the start fresh action.
621
		 *
622
		 * @since 4.4.0
623
		 *