Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wc-stripe-webhook-handler.php 2 locations

@@ 668-670 (lines=3) @@
665
		if ( $this->is_partial_capture( $notification ) ) {
666
			$amount = $notification->data->object->refunds->data[0]->amount / 100;
667
668
			if ( in_array( strtolower( $notification->data->object->currency ), WC_Stripe_Helper::no_decimal_currencies() ) ) {
669
				$amount = $notification->data->object->refunds->data[0]->amount;
670
			}
671
672
			return $amount;
673
		}
@@ 689-691 (lines=3) @@
686
		if ( $this->is_partial_capture( $notification ) ) {
687
			$amount = ( $notification->data->object->amount - $notification->data->object->amount_refunded ) / 100;
688
689
			if ( in_array( strtolower( $notification->data->object->currency ), WC_Stripe_Helper::no_decimal_currencies() ) ) {
690
				$amount = ( $notification->data->object->amount - $notification->data->object->amount_refunded );
691
			}
692
693
			return $amount;
694
		}