Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 17-22 (lines=6) @@
14
<div id="wpinv-email-details">
15
    <h3 class="wpinv-details-t"><?php echo apply_filters( 'wpinv_email_details_title', __( 'Invoice Details', 'invoicing' ), $invoice ); ?></h3>
16
    <table class="table table-bordered table-sm">
17
        <?php if ( $invoice_number = $invoice->get_number() ) { ?>
18
            <tr>
19
                <td><?php echo apply_filters( 'wpinv_invoice_number_label', __( 'Invoice Number', 'invoicing' ), $invoice ); ?></td>
20
                <td><a href="<?php echo esc_url( $invoice_url ) ;?>"><?php echo $invoice_number; ?></a></td>
21
            </tr>
22
        <?php } ?>
23
        <tr>
24
            <td><?php echo apply_filters( 'wpinv_invoice_status_label', __( 'Invoice Status', 'invoicing' ), $invoice ); ?></td>
25
            <td><?php echo $invoice->get_status( true ); ?></td>

includes/wpinv-template-functions.php 1 location

@@ 863-868 (lines=6) @@
860
    $invoice_status = wpinv_get_invoice_status( $invoice_id );
861
    ?>
862
    <table class="table table-bordered table-sm">
863
        <?php if ( $invoice_number = wpinv_get_invoice_number( $invoice_id ) ) { ?>
864
            <tr class="wpi-row-number">
865
                <th><?php echo apply_filters( 'wpinv_invoice_number_label', __( 'Invoice Number', 'invoicing' ), $invoice ); ?></th>
866
                <td><?php echo esc_html( $invoice_number ); ?></td>
867
            </tr>
868
        <?php } ?>
869
        <tr class="wpi-row-status">
870
            <th><?php echo apply_filters( 'wpinv_invoice_status_label', __( 'Invoice Status', 'invoicing' ), $invoice ); ?></th>
871
            <td><?php echo wpinv_invoice_status_label( $invoice_status, wpinv_get_invoice_status( $invoice_id, true ) ); ?></td>