Code Duplication    Length = 12-14 lines in 2 locations

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

@@ 582-595 (lines=14) @@
579
			$this->base_url = add_query_arg( 's', $search_terms, $this->base_url );
580
		}
581
582
		if ( give_is_payment_complete( $payment->ID ) && ! empty( $email ) ) {
583
584
			$actions['email_links'] = sprintf(
585
				'<a class="resend-single-donation-receipt" href="%1$s" aria-label="%2$s">%3$s</a>', wp_nonce_url(
586
				add_query_arg(
587
					array(
588
						'give-action' => 'email_links',
589
						'purchase_id' => $payment->ID,
590
					), $this->base_url
591
				), 'give_payment_nonce'
592
			), sprintf( __( 'Resend Donation %s Receipt', 'give' ), $payment->ID ), __( 'Resend Receipt', 'give' )
593
			);
594
595
		}
596
597
		if ( current_user_can( 'view_give_payments' ) ) {
598
			$actions['delete'] = sprintf(
@@ 597-608 (lines=12) @@
594
595
		}
596
597
		if ( current_user_can( 'view_give_payments' ) ) {
598
			$actions['delete'] = sprintf(
599
				'<a class="delete-single-donation" href="%1$s" aria-label="%2$s">%3$s</a>',
600
				wp_nonce_url(
601
					add_query_arg(
602
						array(
603
							'give-action' => 'delete_payment',
604
							'purchase_id' => $payment->ID,
605
						), $this->base_url
606
					), 'give_donation_nonce'
607
				), sprintf( __( 'Delete Donation %s', 'give' ), $payment->ID ), __( 'Delete', 'give' )
608
			);
609
		}
610
611
		return apply_filters( 'give_payment_row_actions', $actions, $payment );