Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 623-625 (lines=3) @@
620
		if ( $this->is_partial_capture( $notification ) ) {
621
			$amount = $notification->data->object->refunds->data[0]->amount / 100;
622
623
			if ( in_array( strtolower( $notification->data->object->currency ), WC_Stripe_Helper::no_decimal_currencies() ) ) {
624
				$amount = $notification->data->object->refunds->data[0]->amount;
625
			}
626
627
			return $amount;
628
		}
@@ 644-646 (lines=3) @@
641
		if ( $this->is_partial_capture( $notification ) ) {
642
			$amount = ( $notification->data->object->amount - $notification->data->object->amount_refunded ) / 100;
643
644
			if ( in_array( strtolower( $notification->data->object->currency ), WC_Stripe_Helper::no_decimal_currencies() ) ) {
645
				$amount = ( $notification->data->object->amount - $notification->data->object->amount_refunded );
646
			}
647
648
			return $amount;
649
		}