Code Duplication    Length = 4-4 lines in 2 locations

includes/class-notices.php 2 locations

@@ 403-406 (lines=4) @@
400
		}
401
402
		$notice_key = Give()->notices->get_notice_key( $notice_id, $_post['dismiss_interval'] );
403
		if ( 'user' === $_post['dismissible_type'] ) {
404
			$current_user = wp_get_current_user();
405
			$notice_key   = Give()->notices->get_notice_key( $notice_id, $_post['dismiss_interval'], $current_user->ID );
406
		}
407
408
		$notice_dismiss_time = ! empty( $_post['dismiss_interval_time'] ) ? $_post['dismiss_interval_time'] : null;
409
@@ 488-491 (lines=4) @@
485
		$notice_key          = $this->get_notice_key( $notice['id'], $notice['dismiss_interval'] );
486
		$is_notice_dismissed = false;
487
488
		if ( 'user' === $notice['dismissible_type'] ) {
489
			$current_user = wp_get_current_user();
490
			$notice_key   = Give()->notices->get_notice_key( $notice['id'], $notice['dismiss_interval'], $current_user->ID );
491
		}
492
493
		$notice_data = Give_Cache::get( $notice_key, true );
494