public function updateTotal(&$total) {
        $rate = (float)self::config()->get('tax_rate') / 100;
        $tax = $total * $rate;
        $this->setPriceModification($tax);
        if (!(bool)self::config()->get('inclusive')) {
            $total += $tax;
        }
    }
public function updateTotal(&$total) {
        $rate = (float)self::config()->get('tax_rate') / 100;
        $tax = $total * $rate;
        $this->setPriceModification($tax);
        if (!(bool)self::config()->get('inclusive')) {
            $total += $tax;
        }
    }
public function updateTotal ( & $ total ) { $ rate = ( float ) self :: config ( ) -> get ( 'tax_rate' ) / 100 ; $ tax = $ total * $ rate ; $ this -> setPriceModification ( $ tax ) ; if ( ! ( bool ) self :: config ( ) -> get ( 'inclusive' ) ) { $ total += $ tax ; } }
Update the total, if the tax is not inclusive the total gets altered

@param float $total
Update the total if the tax is not inclusive the total gets altered