style updates
This commit is contained in:
@@ -1,4 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Commerce\Services;
|
||||
|
||||
use Modules\Commerce\Contracts\TaxProvider;
|
||||
final class ConfiguredTaxProvider implements TaxProvider { public function calculate(float $subtotal,array $address=[]): float { return config('commerce.prices_include_tax') ? 0.0 : round($subtotal * 0.2,2); } }
|
||||
|
||||
final class ConfiguredTaxProvider implements TaxProvider
|
||||
{
|
||||
public function calculate(float $subtotal, array $address = []): float
|
||||
{
|
||||
return config('commerce.prices_include_tax') ? 0.0 : round($subtotal * 0.2, 2);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user