Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 289-292 (lines=4) @@
286
		if ( $this->stripe_checkout ) {
287
			wp_enqueue_script( 'stripe', 'https://checkout.stripe.com/v2/checkout.js', '', '2.0', true );
288
			wp_enqueue_script( 'woocommerce_stripe', plugins_url( 'assets/js/stripe_checkout.js', WC_STRIPE_MAIN_FILE ), array( 'stripe' ), WC_STRIPE_VERSION, true );
289
		} else {
290
			wp_enqueue_script( 'stripe', 'https://js.stripe.com/v2/', '', '1.0', true );
291
			wp_enqueue_script( 'woocommerce_stripe', plugins_url( 'assets/js/stripe.js', WC_STRIPE_MAIN_FILE ), array( 'jquery-payment', 'stripe' ), WC_STRIPE_VERSION, true );
292
		}
293
294
		$stripe_params = array(
295
			'key'                  => $this->publishable_key,

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

@@ 417-420 (lines=4) @@
414
		if ( $this->stripe_checkout ) {
415
			wp_enqueue_script( 'stripe_checkout', 'https://checkout.stripe.com/v2/checkout.js', '', '2.0', true );
416
			wp_enqueue_script( 'woocommerce_stripe', plugins_url( 'assets/js/stripe_checkout' . $suffix . '.js', WC_STRIPE_MAIN_FILE ), array( 'stripe' ), WC_STRIPE_VERSION, true );
417
		} else {
418
			wp_enqueue_script( 'stripe', 'https://js.stripe.com/v2/', '', '1.0', true );
419
			wp_enqueue_script( 'woocommerce_stripe', plugins_url( 'assets/js/stripe' . $suffix . '.js', WC_STRIPE_MAIN_FILE ), array( 'jquery-payment', 'stripe' ), WC_STRIPE_VERSION, true );
420
		}
421
422
		$stripe_params = array(
423
			'key'                  => $this->publishable_key,