Code Duplication    Length = 4-4 lines in 2 locations

includes/class-notices.php 2 locations

@@ 432-435 (lines=4) @@
429
		}
430
431
		$notice_key = Give()->notices->get_notice_key( $notice_id, $_post['dismiss_interval'] );
432
		if ( 'user' === $_post['dismissible_type'] ) {
433
			$current_user = wp_get_current_user();
434
			$notice_key   = Give()->notices->get_notice_key( $notice_id, $_post['dismiss_interval'], $current_user->ID );
435
		}
436
437
		$notice_dismiss_time = ! empty( $_post['dismiss_interval_time'] ) ? $_post['dismiss_interval_time'] : null;
438
@@ 524-527 (lines=4) @@
521
		$notice_key          = $this->get_notice_key( $notice['id'], $notice['dismiss_interval'] );
522
		$is_notice_dismissed = false;
523
524
		if ( 'user' === $notice['dismissible_type'] ) {
525
			$current_user = wp_get_current_user();
526
			$notice_key   = Give()->notices->get_notice_key( $notice['id'], $notice['dismiss_interval'], $current_user->ID );
527
		}
528
529
		$notice_data = Give_Cache::get( $notice_key, true );
530