Code Duplication    Length = 4-6 lines in 2 locations

templates/emails/wpinv-email-invoice-details.php 1 location

@@ 33-36 (lines=4) @@
30
            <td><?php echo wpinv_invoice_link( $invoice->parent_invoice ); ?></td>
31
        </tr>
32
        <?php } ?>
33
        <?php if ( $gateway_title = $invoice->get_gateway_title() ) { ?>
34
            <td><?php echo apply_filters( 'wpinv_invoice_payment_method_label', __( 'Payment Method', 'invoicing' ), $invoice ); ?></td>
35
            <td><?php echo $gateway_title; ?></td>
36
        <?php } ?>
37
        <?php if ( $invoice_date = $invoice->get_invoice_date( false ) ) { ?>
38
            <tr>
39
                <td><?php echo apply_filters( 'wpinv_invoice_date_label', __( 'Invoice Date', 'invoicing' ), $invoice ); ?></td>

includes/wpinv-template-functions.php 1 location

@@ 880-885 (lines=6) @@
877
            <td><?php echo wpinv_invoice_link( $invoice->parent_invoice ); ?></td>
878
        </tr>
879
        <?php } ?>
880
        <?php if ( $gateway_name = wpinv_get_payment_gateway_name( $invoice_id ) ) { ?>
881
            <tr class="wpi-row-gateway">
882
                <th><?php echo apply_filters( 'wpinv_invoice_payment_method_label', __( 'Payment Method', 'invoicing' ), $invoice ); ?></th>
883
                <td><?php echo $gateway_name; ?></td>
884
            </tr>
885
        <?php } ?>
886
        <?php if ( $invoice_date = wpinv_get_invoice_date( $invoice_id ) ) { ?>
887
            <tr class="wpi-row-date">
888
                <th><?php echo apply_filters( 'wpinv_invoice_date_label', __( 'Invoice Date', 'invoicing' ), $invoice ); ?></th>