Code Duplication    Length = 10-17 lines in 2 locations

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

@@ 1607-1623 (lines=17) @@
1604
	 *
1605
	 * @return string The currency for the payment
1606
	 */
1607
	private function setup_currency() {
1608
		$currency = $this->get_meta( '_give_payment_currency', true );
1609
		$currency = ! empty( $currency ) ?
1610
			$currency :
1611
			/**
1612
			 * Filter the default donation currency
1613
			 *
1614
			 * @since 1.5
1615
			 */
1616
			apply_filters(
1617
				'give_payment_currency_default',
1618
				give_get_currency( $this->form_id, $this ),
1619
				$this
1620
			);
1621
1622
		return $currency;
1623
	}
1624
1625
	/**
1626
	 * Setup the gateway used for the payment
@@ 1647-1656 (lines=10) @@
1644
	 *
1645
	 * @return string The donation ID
1646
	 */
1647
	private function setup_transaction_id() {
1648
		$transaction_id = $this->get_meta( '_give_payment_transaction_id', true );
1649
1650
		if ( empty( $transaction_id ) ) {
1651
			$gateway        = $this->gateway;
1652
			$transaction_id = apply_filters( "give_get_payment_transaction_id-{$gateway}", $this->ID );
1653
		}
1654
1655
		return $transaction_id;
1656
	}
1657
1658
	/**
1659
	 * Setup the IP Address for the payment