Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 243-248 (lines=6) @@
240
			$prepared_source = $this->prepare_order_source( $renewal_order );
241
			$source_object   = $prepared_source->source_object;
242
243
			if ( ! $prepared_source->customer ) {
244
				throw new WC_Stripe_Exception(
245
					'Failed to process renewal for order ' . $renewal_order->get_id() . '. Stripe customer id is missing in the order',
246
					__( 'Customer not found', 'woocommerce-gateway-stripe' )
247
				);
248
			}
249
250
			WC_Stripe_Logger::log( "Info: Begin processing subscription payment for order {$order_id} for the amount of {$amount}" );
251

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

@@ 291-296 (lines=6) @@
288
			$prepared_source = $this->prepare_order_source( $renewal_order );
289
			$source_object   = $prepared_source->source_object;
290
291
			if ( ! $prepared_source->customer ) {
292
				throw new WC_Stripe_Exception(
293
					'Failed to process renewal for order ' . $renewal_order->get_id() . '. Stripe customer id is missing in the order',
294
					__( 'Customer not found', 'woocommerce-gateway-stripe' )
295
				);
296
			}
297
298
			WC_Stripe_Logger::log( "Info: Begin processing subscription payment for order {$order_id} for the amount of {$amount}" );
299