Code Duplication    Length = 7-7 lines in 2 locations

includes/class-wpinv-invoice.php 2 locations

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