Code Duplication    Length = 4-4 lines in 2 locations

includes/class-notices.php 2 locations

@@ 372-375 (lines=4) @@
369
		}
370
371
		$notice_key = Give()->notices->get_notice_key( $notice_id, $_post['dismiss_interval'] );
372
		if ( 'user' === $_post['dismissible_type'] ) {
373
			$current_user = wp_get_current_user();
374
			$notice_key   = Give()->notices->get_notice_key( $notice_id, $_post['dismiss_interval'], $current_user->ID );
375
		}
376
377
		$notice_dismiss_time = ! empty( $_post['dismiss_interval_time'] ) ? $_post['dismiss_interval_time'] : null;
378
@@ 457-460 (lines=4) @@
454
		$notice_key          = $this->get_notice_key( $notice['id'], $notice['dismiss_interval'] );
455
		$is_notice_dismissed = false;
456
457
		if ( 'user' === $notice['dismissible_type'] ) {
458
			$current_user = wp_get_current_user();
459
			$notice_key   = Give()->notices->get_notice_key( $notice['id'], $notice['dismiss_interval'], $current_user->ID );
460
		}
461
462
		$notice_data = Give_Cache::get( $notice_key, true );
463