Code Duplication    Length = 16-16 lines in 3 locations

class.jetpack-idc.php 3 locations

@@ 423-438 (lines=16) @@
420
		</div>
421
	<?php }
422
423
	function get_first_step_header_lead() {
424
		$html = wp_kses(
425
			sprintf(
426
				__(
427
					'Jetpack has been placed into <a href="%1$s">Safe mode</a> because we noticed this is an exact copy of <a href="%2$s">%3$s</a>.',
428
					'jetpack'
429
				),
430
				esc_url( self::SAFE_MODE_DOC_LINK ),
431
				esc_url( self::$wpcom_home_url ),
432
				self::prepare_url_for_display( esc_url_raw( self::$wpcom_home_url ) )
433
			),
434
			array( 'a' => array( 'href' => array() ) )
435
		);
436
437
		/**
438
		 * Allows overriding of the default header text in the first step of the Safe Mode notice.
439
		 *
440
		 * @since 4.4.0
441
		 *
@@ 470-485 (lines=16) @@
467
		return apply_filters( 'jetpack_idc_first_step_header_explanation', $html );
468
	}
469
470
	function get_confirm_safe_mode_action_explanation() {
471
		$html = wp_kses(
472
			sprintf(
473
				__(
474
					'Is this website a temporary duplicate of <a href="%1$s">%2$s</a> for the purposes
475
					of testing, staging or development? If so, we recommend keeping it in Safe Mode.',
476
					'jetpack'
477
				),
478
				esc_url( untrailingslashit( self::$wpcom_home_url ) ),
479
				self::prepare_url_for_display( esc_url( self::$wpcom_home_url ) )
480
			),
481
			array( 'a' => array( 'href' => array() ) )
482
		);
483
484
		/**
485
		 * Allows overriding of the default text used to explain the confirm safe mode action.
486
		 *
487
		 * @since 4.4.0
488
		 *
@@ 507-522 (lines=16) @@
504
		return apply_filters( 'jetpack_idc_confirm_safe_mode_button_text', $string );
505
	}
506
507
	function get_first_step_fix_connection_action_explanation() {
508
		$html = wp_kses(
509
			sprintf(
510
				__(
511
					'If this is a separate and new website, or the new home of <a href="%1$s">%2$s</a>,
512
					we recommend turning Safe Mode off, and re-establishing your connection to WordPress.com.',
513
					'jetpack'
514
				),
515
				esc_url( untrailingslashit( self::$wpcom_home_url ) ),
516
				self::prepare_url_for_display( esc_url( self::$wpcom_home_url ) )
517
			),
518
			array( 'a' => array( 'href' => array() ) )
519
		);
520
521
		/**
522
		 * Allows overriding of the default text used to explain the fix Jetpack connection action.
523
		 *
524
		 * @since 4.4.0
525
		 *