Code Duplication    Length = 18-18 lines in 2 locations

class.jetpack-idc.php 2 locations

@@ 516-533 (lines=18) @@
513
		return apply_filters( 'jetpack_idc_second_step_header_lead', $string );
514
	}
515
516
	function get_migrate_site_action_explanation() {
517
		$html = wp_kses(
518
			sprintf(
519
				__(
520
					'Yes. <a href="%1$s">%2$s</a> is replacing <a href="%3$s">%4$s</a>. I would like to
521
					migrate my stats and subscribers from <a href="%3$s">%4$s</a> to <a href="%1$s">%2$s</a>.',
522
					'jetpack'
523
				),
524
				esc_url( get_home_url() ),
525
				self::prepare_url_for_display( get_home_url() ),
526
				esc_url( self::$wpcom_home_url ),
527
				untrailingslashit( Jetpack::normalize_url_protocol_agnostic( esc_url_raw( self::$wpcom_home_url ) ) )
528
			),
529
			array( 'a' => array( 'href' => array() ) )
530
		);
531
532
		/**
533
		 * Allows overriding of the default text for explaining the migrate site action.
534
		 *
535
		 * @since 4.4.0
536
		 *
@@ 555-572 (lines=18) @@
552
		return apply_filters( 'jetpack_idc_migrate_site_button_text', $string );
553
	}
554
555
	function get_start_fresh_action_explanation() {
556
		$html = wp_kses(
557
			sprintf(
558
				__(
559
					'No. <a href="%1$s">%2$s</a> is a new and different website that\'s separate from 
560
					<a href="%3$s">%4$s</a>. It requires  a new connection to WordPress.com for new stats and subscribers.',
561
					'jetpack'
562
				),
563
				esc_url( get_home_url() ),
564
				self::prepare_url_for_display( get_home_url() ),
565
				esc_url( self::$wpcom_home_url ),
566
				untrailingslashit( Jetpack::normalize_url_protocol_agnostic( esc_url_raw( self::$wpcom_home_url ) ) )
567
			),
568
			array( 'a' => array( 'href' => array() ) )
569
		);
570
571
		/**
572
		 * Allows overriding of the default text for explaining the start fresh action.
573
		 *
574
		 * @since 4.4.0
575
		 *