Code Duplication    Length = 16-16 lines in 3 locations

class.jetpack-idc.php 3 locations

@@ 295-310 (lines=16) @@
292
		</div>
293
	<?php }
294
295
	function get_first_step_header_lead() {
296
		$html = wp_kses(
297
			sprintf(
298
				__(
299
					'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>.',
300
					'jetpack'
301
				),
302
				esc_url( self::SAFE_MODE_DOC_LINK ),
303
				esc_url( self::$wpcom_home_url ),
304
				self::prepare_url_for_display( esc_url_raw( self::$wpcom_home_url ) )
305
			),
306
			array( 'a' => array( 'href' => array() ) )
307
		);
308
309
		/**
310
		 * Allows overriding of the default header text in the first step of the Safe Mode notice.
311
		 *
312
		 * @since 4.4.0
313
		 *
@@ 342-357 (lines=16) @@
339
		return apply_filters( 'jetpack_idc_first_step_header_explanation', $html );
340
	}
341
342
	function get_confirm_safe_mode_action_explanation() {
343
		$html = wp_kses(
344
			sprintf(
345
				__(
346
					'Is this website a temporary duplicate of <a href="%1$s">%2$s</a> for the purposes 
347
					of testing, staging or development? If so, we recommend keeping it in Safe Mode.',
348
					'jetpack'
349
				),
350
				esc_url( untrailingslashit( self::$wpcom_home_url ) ),
351
				self::prepare_url_for_display( esc_url( self::$wpcom_home_url ) )
352
			),
353
			array( 'a' => array( 'href' => array() ) )
354
		);
355
356
		/**
357
		 * Allows overriding of the default text used to explain the confirm safe mode action.
358
		 *
359
		 * @since 4.4.0
360
		 *
@@ 379-394 (lines=16) @@
376
		return apply_filters( 'jetpack_idc_confirm_safe_mode_button_text', $string );
377
	}
378
379
	function get_first_step_fix_connection_action_explanation() {
380
		$html = wp_kses(
381
			sprintf(
382
				__(
383
					'If this is a separate and new website, or the new home of <a href="%1$s">%2$s</a>, 
384
					we recommend turning Safe Mode off, and re-establishing your connection to WordPress.com.',
385
					'jetpack'
386
				),
387
				esc_url( untrailingslashit( self::$wpcom_home_url ) ),
388
				self::prepare_url_for_display( esc_url( self::$wpcom_home_url ) )
389
			),
390
			array( 'a' => array( 'href' => array() ) )
391
		);
392
393
		/**
394
		 * Allows overriding of the default text used to explain the fix Jetpack connection action.
395
		 *
396
		 * @since 4.4.0
397
		 *