Code Duplication    Length = 5-5 lines in 2 locations

includes/abstracts/abstract-wc-stripe-payment-gateway.php 2 locations

@@ 1181-1185 (lines=5) @@
1178
	public function get_intent_from_order( $order ) {
1179
		$order_id = WC_Stripe_Helper::is_wc_lt( '3.0' ) ? $order->id : $order->get_id();
1180
1181
		if ( WC_Stripe_Helper::is_wc_lt( '3.0' ) ) {
1182
			$intent_id = get_post_meta( $order_id, '_stripe_intent_id', true );
1183
		} else {
1184
			$intent_id = $order->get_meta( '_stripe_intent_id' );
1185
		}
1186
1187
		if ( $intent_id ) {
1188
			return WC_Stripe_API::request( array(), "payment_intents/$intent_id", 'GET' );
@@ 1192-1196 (lines=5) @@
1189
		}
1190
1191
		// The order doesn't have a payment intent, but it may have a setup intent.
1192
		if ( WC_Stripe_Helper::is_wc_lt( '3.0' ) ) {
1193
			$intent_id = get_post_meta( $order_id, '_stripe_setup_intent', true );
1194
		} else {
1195
			$intent_id = $order->get_meta( '_stripe_setup_intent' );
1196
		}
1197
1198
		if ( $intent_id ) {
1199
			return WC_Stripe_API::request( array(), "setup_intents/$intent_id", 'GET' );