Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 1318-1323 (lines=6) @@
1315
		$meta = apply_filters( "give_get_payment_meta_{$meta_key}", $meta, $this->ID );
1316
1317
		// Security check.
1318
		if ( is_serialized( $meta ) ) {
1319
			preg_match( '/[oO]\s*:\s*\d+\s*:\s*"\s*(?!(?i)(stdClass))/', $meta, $matches );
1320
			if ( ! empty( $matches ) ) {
1321
				$meta = array();
1322
			}
1323
		}
1324
1325
		return apply_filters( 'give_get_payment_meta', $meta, $this->ID, $meta_key );
1326
	}
@@ 1818-1823 (lines=6) @@
1815
1816
		$user_info = isset( $this->payment_meta['user_info'] ) ? $this->payment_meta['user_info'] : array();
1817
1818
		if ( is_serialized( $user_info ) ) {
1819
			preg_match( '/[oO]\s*:\s*\d+\s*:\s*"\s*(?!(?i)(stdClass))/', $user_info, $matches );
1820
			if ( ! empty( $matches ) ) {
1821
				$user_info = array();
1822
			}
1823
		}
1824
1825
		$user_info = wp_parse_args( $user_info, $defaults );
1826