Code Duplication    Length = 12-14 lines in 2 locations

includes/admin/payments/class-payments-table.php 2 locations

@@ 550-563 (lines=14) @@
547
			$this->base_url = add_query_arg( 's', $search_terms, $this->base_url );
548
		}
549
550
		if ( give_is_payment_complete( $payment->ID ) && ! empty( $email ) ) {
551
552
			$actions['email_links'] = sprintf(
553
				'<a class="resend-single-donation-receipt" href="%1$s" aria-label="%2$s">%3$s</a>', wp_nonce_url(
554
					add_query_arg(
555
						array(
556
							'give-action' => 'email_links',
557
							'purchase_id' => $payment->ID,
558
						), $this->base_url
559
					), 'give_payment_nonce'
560
				), sprintf( __( 'Resend Donation %s Receipt', 'give' ), $payment->ID ), __( 'Resend Receipt', 'give' )
561
			);
562
563
		}
564
565
		if ( current_user_can( 'view_give_payments' ) ) {
566
			$actions['delete'] = sprintf(
@@ 565-576 (lines=12) @@
562
563
		}
564
565
		if ( current_user_can( 'view_give_payments' ) ) {
566
			$actions['delete'] = sprintf(
567
				'<a class="delete-single-donation" href="%1$s" aria-label="%2$s">%3$s</a>', wp_nonce_url(
568
					add_query_arg(
569
						array(
570
							'give-action' => 'delete_payment',
571
							'purchase_id' => $payment->ID,
572
						), $this->base_url
573
					), 'give_donation_nonce'
574
				), sprintf( __( 'Delete Donation %s', 'give' ), $payment->ID ), __( 'Delete', 'give' )
575
			);
576
		}
577
578
		return apply_filters( 'give_payment_row_actions', $actions, $payment );
579
	}