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

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