Code Duplication    Length = 18-18 lines in 2 locations

class.jetpack-idc.php 2 locations

@@ 529-546 (lines=18) @@
526
		return apply_filters( 'jetpack_idc_second_step_header_lead', $string );
527
	}
528
529
	function get_migrate_site_action_explanation() {
530
		$html = wp_kses(
531
			sprintf(
532
				__(
533
					'Yes. <a href="%1$s">%2$s</a> is replacing <a href="%3$s">%4$s</a>. I would like to
534
					migrate my stats and subscribers from <a href="%3$s">%4$s</a> to <a href="%1$s">%2$s</a>.',
535
					'jetpack'
536
				),
537
				esc_url( get_home_url() ),
538
				self::prepare_url_for_display( get_home_url() ),
539
				esc_url( self::$wpcom_home_url ),
540
				untrailingslashit( Jetpack::normalize_url_protocol_agnostic( esc_url_raw( self::$wpcom_home_url ) ) )
541
			),
542
			array( 'a' => array( 'href' => array() ) )
543
		);
544
545
		/**
546
		 * Allows overriding of the default text for explaining the migrate site action.
547
		 *
548
		 * @since 4.4.0
549
		 *
@@ 568-585 (lines=18) @@
565
		return apply_filters( 'jetpack_idc_migrate_site_button_text', $string );
566
	}
567
568
	function get_start_fresh_action_explanation() {
569
		$html = wp_kses(
570
			sprintf(
571
				__(
572
					'No. <a href="%1$s">%2$s</a> is a new and different website that\'s separate from 
573
					<a href="%3$s">%4$s</a>. It requires  a new connection to WordPress.com for new stats and subscribers.',
574
					'jetpack'
575
				),
576
				esc_url( get_home_url() ),
577
				self::prepare_url_for_display( get_home_url() ),
578
				esc_url( self::$wpcom_home_url ),
579
				untrailingslashit( Jetpack::normalize_url_protocol_agnostic( esc_url_raw( self::$wpcom_home_url ) ) )
580
			),
581
			array( 'a' => array( 'href' => array() ) )
582
		);
583
584
		/**
585
		 * Allows overriding of the default text for explaining the start fresh action.
586
		 *
587
		 * @since 4.4.0
588
		 *