Code Duplication    Length = 3-3 lines in 2 locations

includes/compat/class-wc-stripe-sepa-subs-compat.php 1 location

@@ 255-257 (lines=3) @@
252
			/* If we're doing a retry and source is chargeable, we need to pass
253
			 * a different idempotency key and retry for success.
254
			 */
255
			if ( is_object( $source_object ) && empty( $source_object->error ) && $this->need_update_idempotency_key( $source_object, $previous_error ) ) {
256
				add_filter( 'wc_stripe_idempotency_key', array( $this, 'change_idempotency_key' ), 10, 2 );
257
			}
258
259
			if ( ( $this->is_no_such_source_error( $previous_error ) || $this->is_no_linked_source_error( $previous_error ) ) && apply_filters( 'wc_stripe_use_default_customer_source', true ) ) {
260
				// Passing empty source will charge customer default.

includes/compat/class-wc-stripe-subs-compat.php 1 location

@@ 303-305 (lines=3) @@
300
			/* If we're doing a retry and source is chargeable, we need to pass
301
			 * a different idempotency key and retry for success.
302
			 */
303
			if ( is_object( $source_object ) && empty( $source_object->error ) && $this->need_update_idempotency_key( $source_object, $previous_error ) ) {
304
				add_filter( 'wc_stripe_idempotency_key', array( $this, 'change_idempotency_key' ), 10, 2 );
305
			}
306
307
			if ( ( $this->is_no_such_source_error( $previous_error ) || $this->is_no_linked_source_error( $previous_error ) ) && apply_filters( 'wc_stripe_use_default_customer_source', true ) ) {
308
				// Passing empty source will charge customer default.