Code Duplication    Length = 16-16 lines in 3 locations

class.jetpack-idc.php 3 locations

@@ 342-357 (lines=16) @@
339
		</div>
340
	<?php }
341
342
	function get_first_step_header_lead() {
343
		$html = wp_kses(
344
			sprintf(
345
				__(
346
					'Jetpack has been placed into <a href="%1$s">Safe mode</a> because we noticed this is an exact copy of <a href="%2$s">%3$s</a>.',
347
					'jetpack'
348
				),
349
				esc_url( self::SAFE_MODE_DOC_LINK ),
350
				esc_url( self::$wpcom_home_url ),
351
				self::prepare_url_for_display( esc_url_raw( self::$wpcom_home_url ) )
352
			),
353
			array( 'a' => array( 'href' => array() ) )
354
		);
355
356
		/**
357
		 * Allows overriding of the default header text in the first step of the Safe Mode notice.
358
		 *
359
		 * @since 4.4.0
360
		 *
@@ 389-404 (lines=16) @@
386
		return apply_filters( 'jetpack_idc_first_step_header_explanation', $html );
387
	}
388
389
	function get_confirm_safe_mode_action_explanation() {
390
		$html = wp_kses(
391
			sprintf(
392
				__(
393
					'Is this website a temporary duplicate of <a href="%1$s">%2$s</a> for the purposes 
394
					of testing, staging or development? If so, we recommend keeping it in Safe Mode.',
395
					'jetpack'
396
				),
397
				esc_url( untrailingslashit( self::$wpcom_home_url ) ),
398
				self::prepare_url_for_display( esc_url( self::$wpcom_home_url ) )
399
			),
400
			array( 'a' => array( 'href' => array() ) )
401
		);
402
403
		/**
404
		 * Allows overriding of the default text used to explain the confirm safe mode action.
405
		 *
406
		 * @since 4.4.0
407
		 *
@@ 426-441 (lines=16) @@
423
		return apply_filters( 'jetpack_idc_confirm_safe_mode_button_text', $string );
424
	}
425
426
	function get_first_step_fix_connection_action_explanation() {
427
		$html = wp_kses(
428
			sprintf(
429
				__(
430
					'If this is a separate and new website, or the new home of <a href="%1$s">%2$s</a>, 
431
					we recommend turning Safe Mode off, and re-establishing your connection to WordPress.com.',
432
					'jetpack'
433
				),
434
				esc_url( untrailingslashit( self::$wpcom_home_url ) ),
435
				self::prepare_url_for_display( esc_url( self::$wpcom_home_url ) )
436
			),
437
			array( 'a' => array( 'href' => array() ) )
438
		);
439
440
		/**
441
		 * Allows overriding of the default text used to explain the fix Jetpack connection action.
442
		 *
443
		 * @since 4.4.0
444
		 *