Code Duplication    Length = 6-8 lines in 2 locations

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

@@ 546-553 (lines=8) @@
543
			$this->base_url = add_query_arg( 's', $search_terms, $this->base_url );
544
		}
545
546
		if ( give_is_payment_complete( $payment->ID ) && ! empty( $email ) ) {
547
548
			$actions['email_links'] = sprintf( '<a class="resend-single-donation-receipt" href="%1$s" aria-label="%2$s">%3$s</a>', wp_nonce_url( add_query_arg( array(
549
				'give-action' => 'email_links',
550
				'purchase_id' => $payment->ID,
551
			), $this->base_url ), 'give_payment_nonce' ), sprintf( __( 'Resend Donation %s Receipt', 'give' ), $payment->ID ), __( 'Resend Receipt', 'give' ) );
552
553
		}
554
555
		if ( current_user_can( 'view_give_payments' ) ) {
556
			$actions['delete'] = sprintf( '<a class="delete-single-donation" href="%1$s" aria-label="%2$s">%3$s</a>', wp_nonce_url( add_query_arg( array(
@@ 555-560 (lines=6) @@
552
553
		}
554
555
		if ( current_user_can( 'view_give_payments' ) ) {
556
			$actions['delete'] = sprintf( '<a class="delete-single-donation" href="%1$s" aria-label="%2$s">%3$s</a>', wp_nonce_url( add_query_arg( array(
557
				'give-action' => 'delete_payment',
558
				'purchase_id' => $payment->ID,
559
			), $this->base_url ), 'give_donation_nonce' ), sprintf( __( 'Delete Donation %s', 'give' ), $payment->ID ), __( 'Delete', 'give' ) );
560
		}
561
562
		return apply_filters( 'give_payment_row_actions', $actions, $payment );
563
	}