Code Duplication    Length = 17-19 lines in 2 locations

projects/packages/identity-crisis/src/class-identity-crisis.php 1 location

@@ 842-858 (lines=17) @@
839
	 *
840
	 * @return string
841
	 */
842
	public function get_second_step_header_lead() {
843
		$string = sprintf(
844
		/* translators: %s: Site URL. */
845
			esc_html__( 'Is %1$s the new home of %2$s?', 'jetpack' ),
846
			untrailingslashit( self::normalize_url_protocol_agnostic( get_home_url() ) ),
847
			untrailingslashit( self::normalize_url_protocol_agnostic( esc_url_raw( self::$wpcom_home_url ) ) )
848
		);
849
850
		/**
851
		 * Allows overriding of the default header text in the second step of the Safe Mode notice.
852
		 *
853
		 * @param string $html The HTML to be displayed.
854
		 *
855
		 * @since 4.4.0
856
		 */
857
		return apply_filters( 'jetpack_idc_second_step_header_lead', $string );
858
	}
859
860
	/**
861
	 * Returns the site action explanation.

projects/plugins/jetpack/class.jetpack-idc.php 1 location

@@ 570-588 (lines=19) @@
567
		return apply_filters( 'jetpack_idc_first_step_fix_connection_button_text', $string );
568
	}
569
570
	function get_second_step_header_lead() {
571
		$string = sprintf(
572
			esc_html__(
573
				'Is %1$s the new home of %2$s?',
574
				'jetpack'
575
			),
576
			untrailingslashit( Jetpack::normalize_url_protocol_agnostic( get_home_url() ) ),
577
			untrailingslashit( Jetpack::normalize_url_protocol_agnostic( esc_url_raw( self::$wpcom_home_url ) ) )
578
		);
579
580
		/**
581
		 * Allows overriding of the default header text in the second step of the Safe Mode notice.
582
		 *
583
		 * @since 4.4.0
584
		 *
585
		 * @param string $html The HTML to be displayed
586
		 */
587
		return apply_filters( 'jetpack_idc_second_step_header_lead', $string );
588
	}
589
590
	function get_migrate_site_action_explanation() {
591
		$html = wp_kses(