Code Duplication    Length = 10-10 lines in 2 locations

includes/class-wc-stripe-helper.php 2 locations

@@ 96-105 (lines=10) @@
93
	 * @since 4.1.0
94
	 * @param object $order
95
	 */
96
	public static function delete_stripe_fee( $order = null ) {
97
		if ( is_null( $order ) ) {
98
			return false;
99
		}
100
101
		$order_id = $order->get_id();
102
103
		delete_post_meta( $order_id, self::META_NAME_FEE );
104
		delete_post_meta( $order_id, self::LEGACY_META_NAME_FEE );
105
	}
106
107
	/**
108
	 * Gets the Stripe net for order. With legacy check.
@@ 155-164 (lines=10) @@
152
	 * @since 4.1.0
153
	 * @param object $order
154
	 */
155
	public static function delete_stripe_net( $order = null ) {
156
		if ( is_null( $order ) ) {
157
			return false;
158
		}
159
160
		$order_id = $order->get_id();
161
162
		delete_post_meta( $order_id, self::META_NAME_NET );
163
		delete_post_meta( $order_id, self::LEGACY_META_NAME_NET );
164
	}
165
166
	/**
167
	 * Get Stripe amount to pay