Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 628-630 (lines=3) @@
625
		if ( $this->is_partial_capture( $notification ) ) {
626
			$amount = $notification->data->object->refunds->data[0]->amount / 100;
627
628
			if ( in_array( strtolower( $notification->data->object->currency ), WC_Stripe_Helper::no_decimal_currencies() ) ) {
629
				$amount = $notification->data->object->refunds->data[0]->amount;
630
			}
631
632
			return $amount;
633
		}
@@ 649-651 (lines=3) @@
646
		if ( $this->is_partial_capture( $notification ) ) {
647
			$amount = ( $notification->data->object->amount - $notification->data->object->amount_refunded ) / 100;
648
649
			if ( in_array( strtolower( $notification->data->object->currency ), WC_Stripe_Helper::no_decimal_currencies() ) ) {
650
				$amount = ( $notification->data->object->amount - $notification->data->object->amount_refunded );
651
			}
652
653
			return $amount;
654
		}