Code Duplication    Length = 10-17 lines in 2 locations

includes/payments/class-give-payment.php 2 locations

@@ 1599-1615 (lines=17) @@
1596
	 *
1597
	 * @return string The currency for the payment
1598
	 */
1599
	private function setup_currency() {
1600
		$currency = $this->get_meta( '_give_payment_currency', true );
1601
		$currency = ! empty( $currency ) ?
1602
			$currency :
1603
			/**
1604
			 * Filter the default donation currency
1605
			 *
1606
			 * @since 1.5
1607
			 */
1608
			apply_filters(
1609
				'give_payment_currency_default',
1610
				give_get_currency( $this->form_id, $this ),
1611
				$this
1612
			);
1613
1614
		return $currency;
1615
	}
1616
1617
	/**
1618
	 * Setup the gateway used for the payment
@@ 1639-1648 (lines=10) @@
1636
	 *
1637
	 * @return string The donation ID
1638
	 */
1639
	private function setup_transaction_id() {
1640
		$transaction_id = $this->get_meta( '_give_payment_transaction_id', true );
1641
1642
		if ( empty( $transaction_id ) ) {
1643
			$gateway        = $this->gateway;
1644
			$transaction_id = apply_filters( "give_get_payment_transaction_id-{$gateway}", $this->ID );
1645
		}
1646
1647
		return $transaction_id;
1648
	}
1649
1650
	/**
1651
	 * Setup the IP Address for the payment