Code Duplication    Length = 18-18 lines in 2 locations

class.jetpack-idc.php 2 locations

@@ 483-500 (lines=18) @@
480
		return apply_filters( 'jetpack_idc_second_step_header_lead', $string );
481
	}
482
483
	function get_migrate_site_action_explanation() {
484
		$html = wp_kses(
485
			sprintf(
486
				__(
487
					'Yes. <a href="%1$s">%2$s</a> is replacing <a href="%3$s">%4$s</a>. I would like to
488
					migrate my stats and subscribers from <a href="%3$s">%4$s</a> to <a href="%1$s">%2$s</a>.',
489
					'jetpack'
490
				),
491
				esc_url( get_home_url() ),
492
				self::prepare_url_for_display( get_home_url() ),
493
				esc_url( self::$wpcom_home_url ),
494
				untrailingslashit( Jetpack::normalize_url_protocol_agnostic( esc_url_raw( self::$wpcom_home_url ) ) )
495
			),
496
			array( 'a' => array( 'href' => array() ) )
497
		);
498
499
		/**
500
		 * Allows overriding of the default text for explaining the migrate site action.
501
		 *
502
		 * @since 4.4.0
503
		 *
@@ 522-539 (lines=18) @@
519
		return apply_filters( 'jetpack_idc_migrate_site_button_text', $string );
520
	}
521
522
	function get_start_fresh_action_explanation() {
523
		$html = wp_kses(
524
			sprintf(
525
				__(
526
					'No. <a href="%1$s">%2$s</a> is a new and different website that\'s separate from 
527
					<a href="%3$s">%4$s</a>. It requires  a new connection to WordPress.com for new stats and subscribers.',
528
					'jetpack'
529
				),
530
				esc_url( get_home_url() ),
531
				self::prepare_url_for_display( get_home_url() ),
532
				esc_url( self::$wpcom_home_url ),
533
				untrailingslashit( Jetpack::normalize_url_protocol_agnostic( esc_url_raw( self::$wpcom_home_url ) ) )
534
			),
535
			array( 'a' => array( 'href' => array() ) )
536
		);
537
538
		/**
539
		 * Allows overriding of the default text for explaining the start fresh action.
540
		 *
541
		 * @since 4.4.0
542
		 *