Code Duplication    Length = 14-14 lines in 2 locations

includes/payment-methods/class-wc-stripe-payment-request.php 2 locations

@@ 965-978 (lines=14) @@
962
				);
963
			}
964
965
			if ( wc_shipping_enabled() && $product->needs_shipping() ) {
966
				$items[] = array(
967
					'label'   => __( 'Shipping', 'woocommerce-gateway-stripe' ),
968
					'amount'  => 0,
969
					'pending' => true,
970
				);
971
972
				$data['shippingOptions'] = array(
973
					'id'     => 'pending',
974
					'label'  => __( 'Pending', 'woocommerce-gateway-stripe' ),
975
					'detail' => '',
976
					'amount' => 0,
977
				);
978
			}
979
980
			$data['displayItems'] = $items;
981
			$data['total']        = array(
@@ 309-322 (lines=14) @@
306
			);
307
		}
308
309
		if ( wc_shipping_enabled() && $product->needs_shipping() ) {
310
			$items[] = array(
311
				'label'   => __( 'Shipping', 'woocommerce-gateway-stripe' ),
312
				'amount'  => 0,
313
				'pending' => true,
314
			);
315
316
			$data['shippingOptions'] = array(
317
				'id'     => 'pending',
318
				'label'  => __( 'Pending', 'woocommerce-gateway-stripe' ),
319
				'detail' => '',
320
				'amount' => 0,
321
			);
322
		}
323
324
		$data['displayItems'] = $items;
325
		$data['total']        = array(