Code Duplication    Length = 4-4 lines in 2 locations

includes/payment-methods/class-wc-gateway-stripe-bitcoin.php 1 location

@@ 369-372 (lines=4) @@
366
367
			$prepared_source = $this->prepare_source( get_current_user_id(), $force_save_source );
368
369
			if ( empty( $prepared_source->source ) ) {
370
				$localized_message = __( 'Payment processing failed. Please retry.', 'woocommerce-gateway-stripe' );
371
				throw new WC_Stripe_Exception( print_r( $prepared_source, true ), $localized_message );
372
			}
373
374
			// Store source to order meta.
375
			$this->save_source( $order, $prepared_source );

includes/class-wc-gateway-stripe.php 1 location

@@ 646-649 (lines=4) @@
643
				}
644
			}
645
646
			if ( empty( $prepared_source->source ) ) {
647
				$localized_message = __( 'Payment processing failed. Please retry.', 'woocommerce-gateway-stripe' );
648
				throw new WC_Stripe_Exception( print_r( $prepared_source, true ), $localized_message );
649
			}
650
651
			// Store source to order meta.
652
			$this->save_source( $order, $prepared_source );