Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 1364-1369 (lines=6) @@
1361
		$meta = apply_filters( "give_get_payment_meta_{$meta_key}", $meta, $this->ID );
1362
1363
		// Security check.
1364
		if ( is_serialized( $meta ) ) {
1365
			preg_match( '/[oO]\s*:\s*\d+\s*:\s*"\s*(?!(?i)(stdClass))/', $meta, $matches );
1366
			if ( ! empty( $matches ) ) {
1367
				$meta = array();
1368
			}
1369
		}
1370
1371
		/**
1372
		 * Filter the all meta keys.
@@ 1744-1749 (lines=6) @@
1741
1742
		$user_info = isset( $this->payment_meta['user_info'] ) ? $this->payment_meta['user_info'] : array();
1743
1744
		if ( is_serialized( $user_info ) ) {
1745
			preg_match( '/[oO]\s*:\s*\d+\s*:\s*"\s*(?!(?i)(stdClass))/', $user_info, $matches );
1746
			if ( ! empty( $matches ) ) {
1747
				$user_info = array();
1748
			}
1749
		}
1750
1751
		$user_info = wp_parse_args( $user_info, $defaults );
1752