Code Duplication    Length = 21-22 lines in 3 locations

class.jetpack-idc.php 3 locations

@@ 399-420 (lines=22) @@
396
		return apply_filters( 'jetpack_idc_first_step_header_lead', $html );
397
	}
398
399
	function get_first_step_header_explanation() {
400
		$html = wp_kses(
401
			sprintf(
402
				__(
403
					'Please confirm Safe Mode or fix the Jetpack connection. Select one of the options below or <a href="%1$s">learn 
404
					more about Safe Mode</a>.',
405
					'jetpack'
406
				),
407
				esc_url( self::SAFE_MODE_DOC_LINK )
408
			),
409
			array( 'a' => array( 'href' => array() ) )
410
		);
411
412
		/**
413
		 * Allows overriding of the default header explanation text in the first step of the Safe Mode notice.
414
		 *
415
		 * @since 4.4.0
416
		 *
417
		 * @param string $html The HTML to be displayed
418
		 */
419
		return apply_filters( 'jetpack_idc_first_step_header_explanation', $html );
420
	}
421
422
	function get_confirm_safe_mode_action_explanation() {
423
		$html = wp_kses(
@@ 594-614 (lines=21) @@
591
		return apply_filters( 'jetpack_idc_start_fresh_button_text', $string );
592
	}
593
594
	function get_unsure_prompt() {
595
		$html = wp_kses(
596
			sprintf(
597
				__(
598
					'Unsure what to do? <a href="%1$s">Read more about Jetpack Safe Mode</a>',
599
					'jetpack'
600
				),
601
				esc_url( self::SAFE_MODE_DOC_LINK )
602
			),
603
			array( 'a' => array( 'href' => array() ) )
604
		);
605
606
		/**
607
		 * Allows overriding of the default text using in the "Unsure what to do?" prompt.
608
		 *
609
		 * @since 4.4.0
610
		 *
611
		 * @param string $html The HTML to be displayed
612
		 */
613
		return apply_filters( 'jetpack_idc_unsure_prompt', $html );
614
	}
615
616
	function get_non_admin_notice_text() {
617
		$html = wp_kses(
@@ 616-636 (lines=21) @@
613
		return apply_filters( 'jetpack_idc_unsure_prompt', $html );
614
	}
615
616
	function get_non_admin_notice_text() {
617
		$html = wp_kses(
618
			sprintf(
619
				__(
620
					'Jetpack has been placed into Safe Mode. Learn more about <a href="%1$s">Safe Mode</a>.',
621
					'jetpack'
622
				),
623
				esc_url( self::SAFE_MODE_DOC_LINK )
624
			),
625
			array( 'a' => array( 'href' => array() ) )
626
		);
627
628
		/**
629
		 * Allows overriding of the default text that is displayed to non-admin on the Jetpack admin page.
630
		 *
631
		 * @since 4.4.0
632
		 *
633
		 * @param string $html The HTML to be displayed
634
		 */
635
		return apply_filters( 'jetpack_idc_non_admin_notice_text', $html );
636
	}
637
638
	function get_non_admin_contact_admin_text() {
639
		$string = esc_html__( 'An administrator of this site can take Jetpack out of Safe Mode.', 'jetpack' );