Code Duplication    Length = 21-22 lines in 3 locations

class.jetpack-idc.php 3 locations

@@ 468-489 (lines=22) @@
465
		return apply_filters( 'jetpack_idc_first_step_header_lead', $html );
466
	}
467
468
	function get_first_step_header_explanation() {
469
		$html = wp_kses(
470
			sprintf(
471
				__(
472
					'Please confirm Safe Mode or fix the Jetpack connection. Select one of the options below or <a href="%1$s">learn
473
					more about Safe Mode</a>.',
474
					'jetpack'
475
				),
476
				esc_url( self::get_safe_mod_doc_url() )
477
			),
478
			array( 'a' => array( 'href' => array() ) )
479
		);
480
481
		/**
482
		 * Allows overriding of the default header explanation text in the first step of the Safe Mode notice.
483
		 *
484
		 * @since 4.4.0
485
		 *
486
		 * @param string $html The HTML to be displayed
487
		 */
488
		return apply_filters( 'jetpack_idc_first_step_header_explanation', $html );
489
	}
490
491
	function get_confirm_safe_mode_action_explanation() {
492
		$html = wp_kses(
@@ 663-683 (lines=21) @@
660
		return apply_filters( 'jetpack_idc_start_fresh_button_text', $string );
661
	}
662
663
	function get_unsure_prompt() {
664
		$html = wp_kses(
665
			sprintf(
666
				__(
667
					'Unsure what to do? <a href="%1$s">Read more about Jetpack Safe Mode</a>',
668
					'jetpack'
669
				),
670
				esc_url( self::get_safe_mod_doc_url() )
671
			),
672
			array( 'a' => array( 'href' => array() ) )
673
		);
674
675
		/**
676
		 * Allows overriding of the default text using in the "Unsure what to do?" prompt.
677
		 *
678
		 * @since 4.4.0
679
		 *
680
		 * @param string $html The HTML to be displayed
681
		 */
682
		return apply_filters( 'jetpack_idc_unsure_prompt', $html );
683
	}
684
685
	function get_non_admin_notice_text() {
686
		$html = wp_kses(
@@ 685-705 (lines=21) @@
682
		return apply_filters( 'jetpack_idc_unsure_prompt', $html );
683
	}
684
685
	function get_non_admin_notice_text() {
686
		$html = wp_kses(
687
			sprintf(
688
				__(
689
					'Jetpack has been placed into Safe Mode. Learn more about <a href="%1$s">Safe Mode</a>.',
690
					'jetpack'
691
				),
692
				esc_url( self::get_safe_mod_doc_url() )
693
			),
694
			array( 'a' => array( 'href' => array() ) )
695
		);
696
697
		/**
698
		 * Allows overriding of the default text that is displayed to non-admin on the Jetpack admin page.
699
		 *
700
		 * @since 4.4.0
701
		 *
702
		 * @param string $html The HTML to be displayed
703
		 */
704
		return apply_filters( 'jetpack_idc_non_admin_notice_text', $html );
705
	}
706
707
	function get_non_admin_contact_admin_text() {
708
		$string = esc_html__( 'An administrator of this site can take Jetpack out of Safe Mode.', 'jetpack' );