Code Duplication    Length = 5-5 lines in 3 locations

includes/wpinv-gd-functions.php 3 locations

@@ 564-568 (lines=5) @@
561
            }
562
        }
563
        
564
        if ( $count > 0 ) {
565
            $message = sprintf( _n( 'Total <b>%d</b> price package is merged successfully.', 'Total <b>%d</b> price packages are merged successfully.', $count, 'invoicing' ), $count );
566
        } else {
567
            $message = __( 'No price packages merged.', 'invoicing' );
568
        }
569
    } else {
570
        $success = false;
571
        $message = __( 'No price packages found to merge!', 'invoicing' );
@@ 625-629 (lines=5) @@
622
        
623
        $wpi_gdp_inv_merge = false;
624
        
625
        if ( $count > 0 ) {
626
            $message = sprintf( _n( 'Total <b>%d</b> invoice is merged successfully.', 'Total <b>%d</b> invoices are merged successfully.', $count, 'invoicing' ), $count );
627
        } else {
628
            $message = __( 'No invoices merged.', 'invoicing' );
629
        }
630
    } else {
631
        $success = false;
632
        $message = __( 'No invoices found to merge!', 'invoicing' );
@@ 685-689 (lines=5) @@
682
            }
683
        }
684
        
685
        if ( $count > 0 ) {
686
            $message = sprintf( _n( 'Total <b>%d</b> coupon is merged successfully.', 'Total <b>%d</b> coupons are merged successfully.', $count, 'invoicing' ), $count );
687
        } else {
688
            $message = __( 'No coupons merged.', 'invoicing' );
689
        }
690
    } else {
691
        $success = false;
692
        $message = __( 'No coupons found to merge!', 'invoicing' );