Code Duplication    Length = 17-19 lines in 2 locations

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

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

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

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