Code Duplication    Length = 5-5 lines in 3 locations

includes/wpinv-gd-functions.php 3 locations

@@ 552-556 (lines=5) @@
549
            }
550
        }
551
        
552
        if ( $count > 0 ) {
553
            $message = sprintf( _n( 'Total <b>%d</b> price package is merged successfully.', 'Total <b>%d</b> price packages are merged successfully.', $count, 'invoicing' ), $count );
554
        } else {
555
            $message = __( 'No price packages merged.', 'invoicing' );
556
        }
557
    } else {
558
        $success = false;
559
        $message = __( 'No price packages found to merge!', 'invoicing' );
@@ 613-617 (lines=5) @@
610
        
611
        $wpi_gdp_inv_merge = false;
612
        
613
        if ( $count > 0 ) {
614
            $message = sprintf( _n( 'Total <b>%d</b> invoice is merged successfully.', 'Total <b>%d</b> invoices are merged successfully.', $count, 'invoicing' ), $count );
615
        } else {
616
            $message = __( 'No invoices merged.', 'invoicing' );
617
        }
618
    } else {
619
        $success = false;
620
        $message = __( 'No invoices found to merge!', 'invoicing' );
@@ 673-677 (lines=5) @@
670
            }
671
        }
672
        
673
        if ( $count > 0 ) {
674
            $message = sprintf( _n( 'Total <b>%d</b> coupon is merged successfully.', 'Total <b>%d</b> coupons are merged successfully.', $count, 'invoicing' ), $count );
675
        } else {
676
            $message = __( 'No coupons merged.', 'invoicing' );
677
        }
678
    } else {
679
        $success = false;
680
        $message = __( 'No coupons found to merge!', 'invoicing' );