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

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