Code Duplication    Length = 14-21 lines in 3 locations

class.jetpack-idc.php 3 locations

@@ 447-461 (lines=15) @@
444
		return apply_filters( 'jetpack_idc_first_step_header_lead', $html );
445
	}
446
447
	function get_first_step_header_explanation() {
448
		$html = wp_kses(
449
			sprintf(
450
				__(
451
					'Please confirm Safe Mode or fix the Jetpack connection. Select one of the options below or <a href="%1$s">learn
452
					more about Safe Mode</a>.',
453
					'jetpack'
454
				),
455
				esc_url( self::SAFE_MODE_DOC_LINK )
456
			),
457
			array( 'a' => array( 'href' => array() ) )
458
		);
459
460
		/**
461
		 * Allows overriding of the default header explanation text in the first step of the Safe Mode notice.
462
		 *
463
		 * @since 4.4.0
464
		 *
@@ 642-655 (lines=14) @@
639
		return apply_filters( 'jetpack_idc_start_fresh_button_text', $string );
640
	}
641
642
	function get_unsure_prompt() {
643
		$html = wp_kses(
644
			sprintf(
645
				__(
646
					'Unsure what to do? <a href="%1$s">Read more about Jetpack Safe Mode</a>',
647
					'jetpack'
648
				),
649
				esc_url( self::SAFE_MODE_DOC_LINK )
650
			),
651
			array( 'a' => array( 'href' => array() ) )
652
		);
653
654
		/**
655
		 * Allows overriding of the default text using in the "Unsure what to do?" prompt.
656
		 *
657
		 * @since 4.4.0
658
		 *
@@ 664-684 (lines=21) @@
661
		return apply_filters( 'jetpack_idc_unsure_prompt', $html );
662
	}
663
664
	function get_non_admin_notice_text() {
665
		$html = wp_kses(
666
			sprintf(
667
				__(
668
					'Jetpack has been placed into Safe Mode. Learn more about <a href="%1$s">Safe Mode</a>.',
669
					'jetpack'
670
				),
671
				esc_url( self::SAFE_MODE_DOC_LINK )
672
			),
673
			array( 'a' => array( 'href' => array() ) )
674
		);
675
676
		/**
677
		 * Allows overriding of the default text that is displayed to non-admin on the Jetpack admin page.
678
		 *
679
		 * @since 4.4.0
680
		 *
681
		 * @param string $html The HTML to be displayed
682
		 */
683
		return apply_filters( 'jetpack_idc_non_admin_notice_text', $html );
684
	}
685
686
	function get_non_admin_contact_admin_text() {
687
		$string = esc_html__( 'An administrator of this site can take Jetpack out of Safe Mode.', 'jetpack' );