Code Duplication    Length = 16-16 lines in 3 locations

class.jetpack-idc.php 3 locations

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