Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 331-333 (lines=3) @@
328
			return array( false, false, array() );
329
		}
330
331
		if ( ! $this->is_retention_expired( $order->get_date_created()->getTimestamp() ) ) {
332
			return array( false, true, array( sprintf( __( 'Order ID %d is less than set retention days. Personal data retained. (Stripe)' ), $order->get_id() ) ) );
333
		}
334
335
		if ( $subscription->has_status( apply_filters( 'wc_stripe_privacy_eraser_subs_statuses', array( 'on-hold', 'active' ) ) ) ) {
336
			return array( false, true, array( sprintf( __( 'Order ID %d contains an active Subscription. Personal data retained. (Stripe)' ), $order->get_id() ) ) );
@@ 366-368 (lines=3) @@
363
		$stripe_refund_id   = get_post_meta( $order_id, '_stripe_refund_id', true );
364
		$stripe_customer_id = get_post_meta( $order_id, '_stripe_customer_id', true );
365
366
		if ( ! $this->is_retention_expired( $order->get_date_created()->getTimestamp() ) ) {
367
			return array( false, true, array( sprintf( __( 'Order ID %d is less than set retention days. Personal data retained. (Stripe)' ), $order->get_id() ) ) );
368
		}
369
370
		if ( empty( $stripe_source_id ) && empty( $stripe_refund_id ) && empty( $stripe_customer_id ) ) {
371
			return array( false, false, array() );