style updates

This commit is contained in:
Mark Gregory
2026-07-24 14:59:44 +01:00
parent 24ab771cd3
commit dd23205d0b
482 changed files with 7173 additions and 1435 deletions
@@ -1,4 +1,12 @@
<?php
namespace Modules\Commerce\Contracts;
use Modules\Commerce\Models\Product;
interface InventoryProvider { public function adjust(Product $product, int $quantity, string $reason, ?int $userId = null): void; public function available(Product $product): int; }
interface InventoryProvider
{
public function adjust(Product $product, int $quantity, string $reason, ?int $userId = null): void;
public function available(Product $product): int;
}
@@ -1,4 +1,12 @@
<?php
namespace Modules\Commerce\Contracts;
use Modules\Commerce\Models\Order;
interface PaymentProvider { public function charge(Order $order, array $data = []): array; public function refund(Order $order, float $amount): array; }
interface PaymentProvider
{
public function charge(Order $order, array $data = []): array;
public function refund(Order $order, float $amount): array;
}
@@ -1,3 +1,8 @@
<?php
namespace Modules\Commerce\Contracts;
interface ShippingProvider { public function quote(array $address, float $subtotal): float; }
interface ShippingProvider
{
public function quote(array $address, float $subtotal): float;
}
+6 -1
View File
@@ -1,3 +1,8 @@
<?php
namespace Modules\Commerce\Contracts;
interface TaxProvider { public function calculate(float $subtotal, array $address = []): float; }
interface TaxProvider
{
public function calculate(float $subtotal, array $address = []): float;
}