Code Duplication    Length = 13-13 lines in 2 locations

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

@@ 238-250 (lines=13) @@
235
	 * "Confirm Staging" - Dismiss the notice and continue on with our lives in staging mode.
236
	 * "Fix Jetpack Connection" - Will disconnect the site and start the mitigation...
237
	 */
238
	function display_idc_notice() {
239
		$classes = 'jp-idc-notice inline notice notice-warning';
240
		if ( $this->admin_page_has_help_tabs() ) {
241
			$classes .= ' has-help-tabs';
242
		}
243
		?>
244
		<div class="<?php echo $classes; ?>">
245
			<?php $this->render_notice_header(); ?>
246
			<?php $this->render_notice_first_step(); ?>
247
			<?php $this->render_notice_second_step(); ?>
248
		</div>
249
		<?php
250
	}
251
252
	function enqueue_admin_bar_css() {
253
		wp_enqueue_style(

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

@@ 467-479 (lines=13) @@
464
	 *
465
	 * @return void
466
	 */
467
	public function display_idc_notice() {
468
		$classes = 'jp-idc-notice inline notice notice-warning';
469
		if ( $this->admin_page_has_help_tabs() ) {
470
			$classes .= ' has-help-tabs';
471
		}
472
		?>
473
		<div class="<?php echo esc_attr( $classes ); ?>">
474
			<?php $this->render_notice_header(); ?>
475
			<?php $this->render_notice_first_step(); ?>
476
			<?php $this->render_notice_second_step(); ?>
477
		</div>
478
		<?php
479
	}
480
481
	/**
482
	 * Enqueue CSS for the admin bar.