Code Duplication    Length = 4-4 lines in 2 locations

admin_pages/transactions/Transactions_Admin_Page.core.php 2 locations

@@ 637-640 (lines=4) @@
634
        if ($this->_transaction->get('TXN_paid') == $this->_transaction->get('TXN_total')) {
635
            // paid in full
636
            $this->_template_args['amount_due'] = false;
637
        } elseif ($this->_transaction->get('TXN_paid') > $this->_transaction->get('TXN_total')) {
638
            // overpaid
639
            $this->_template_args['amount_due_class'] = 'txn-overview-no-payment-spn';
640
        } elseif (($this->_transaction->get('TXN_total') > 0) && ($this->_transaction->get('TXN_paid') > 0)) {
641
            // monies owing
642
            $this->_template_args['amount_due_class'] = 'txn-overview-part-payment-spn';
643
        } elseif (($this->_transaction->get('TXN_total') > 0) && ($this->_transaction->get('TXN_paid') == 0)) {
@@ 643-646 (lines=4) @@
640
        } elseif (($this->_transaction->get('TXN_total') > 0) && ($this->_transaction->get('TXN_paid') > 0)) {
641
            // monies owing
642
            $this->_template_args['amount_due_class'] = 'txn-overview-part-payment-spn';
643
        } elseif (($this->_transaction->get('TXN_total') > 0) && ($this->_transaction->get('TXN_paid') == 0)) {
644
            // no payments made yet
645
            $this->_template_args['amount_due_class'] = 'txn-overview-no-payment-spn';
646
        } elseif ($this->_transaction->get('TXN_total') == 0) {
647
            // free event
648
            $this->_template_args['amount_due'] = false;
649
        }