Code Duplication    Length = 3-3 lines in 2 locations

includes/admin/class-wc-stripe-privacy.php 2 locations

@@ 343-345 (lines=3) @@
340
			return array( false, false, array() );
341
		}
342
343
		if ( ! $this->is_retention_expired( $order->get_date_created()->getTimestamp() ) ) {
344
			/* translators: %d Order ID */
345
			return array( false, true, array( sprintf( __( 'Order ID %d is less than set retention days. Personal data retained. (Stripe)', 'woocommerce-gateway-stripe' ), $order->get_id() ) ) );
346
		}
347
348
		if ( $subscription->has_status( apply_filters( 'wc_stripe_privacy_eraser_subs_statuses', array( 'on-hold', 'active' ) ) ) ) {
@@ 380-382 (lines=3) @@
377
		$stripe_refund_id   = get_post_meta( $order_id, '_stripe_refund_id', true );
378
		$stripe_customer_id = get_post_meta( $order_id, '_stripe_customer_id', true );
379
380
		if ( ! $this->is_retention_expired( $order->get_date_created()->getTimestamp() ) ) {
381
			/* translators: %d Order ID */
382
			return array( false, true, array( sprintf( __( 'Order ID %d is less than set retention days. Personal data retained. (Stripe)', 'woocommerce-gateway-stripe' ), $order->get_id() ) ) );
383
		}
384
385
		if ( empty( $stripe_source_id ) && empty( $stripe_refund_id ) && empty( $stripe_customer_id ) ) {