Code Duplication    Length = 6-6 lines in 2 locations

includes/payments/class-give-payment.php 2 locations

@@ 1356-1361 (lines=6) @@
1353
		$meta = apply_filters( "give_get_payment_meta_{$meta_key}", $meta, $this->ID );
1354
1355
		// Security check.
1356
		if ( is_serialized( $meta ) ) {
1357
			preg_match( '/[oO]\s*:\s*\d+\s*:\s*"\s*(?!(?i)(stdClass))/', $meta, $matches );
1358
			if ( ! empty( $matches ) ) {
1359
				$meta = array();
1360
			}
1361
		}
1362
1363
		/**
1364
		 * Filter the all meta keys.
@@ 1736-1741 (lines=6) @@
1733
1734
		$user_info = isset( $this->payment_meta['user_info'] ) ? $this->payment_meta['user_info'] : array();
1735
1736
		if ( is_serialized( $user_info ) ) {
1737
			preg_match( '/[oO]\s*:\s*\d+\s*:\s*"\s*(?!(?i)(stdClass))/', $user_info, $matches );
1738
			if ( ! empty( $matches ) ) {
1739
				$user_info = array();
1740
			}
1741
		}
1742
1743
		$user_info = wp_parse_args( $user_info, $defaults );
1744