Code Duplication    Length = 7-7 lines in 2 locations

includes/class-wpinv-invoice.php 2 locations

@@ 1015-1021 (lines=7) @@
1012
        return $note_id;
1013
    }
1014
1015
    private function increase_subtotal( $amount = 0.00 ) {
1016
        $amount          = (float) $amount;
1017
        $this->subtotal += $amount;
1018
        $this->subtotal  = wpinv_format_amount( $this->subtotal, NULL, true );
1019
1020
        $this->recalculate_total();
1021
    }
1022
1023
    private function decrease_subtotal( $amount = 0.00 ) {
1024
        $amount          = (float) $amount;
@@ 1035-1041 (lines=7) @@
1032
        $this->recalculate_total();
1033
    }
1034
1035
    private function increase_fees( $amount = 0.00 ) {
1036
        $amount            = (float)$amount;
1037
        $this->fees_total += $amount;
1038
        $this->fees_total  = wpinv_format_amount( $this->fees_total, NULL, true );
1039
1040
        $this->recalculate_total();
1041
    }
1042
1043
    private function decrease_fees( $amount = 0.00 ) {
1044
        $amount            = (float) $amount;