code format for shipping service

This commit is contained in:
Edward Yang 2022-12-01 15:23:01 +08:00
parent 088d3103fe
commit 42b86f3cec
1 changed files with 6 additions and 1 deletions

View File

@ -17,7 +17,12 @@ use Illuminate\Support\Str;
class ShippingService
{
public static function getTotal(TotalService $totalService)
/**
* @param TotalService $totalService
* @return array|null
* @throws \Exception
*/
public static function getTotal(TotalService $totalService): ?array
{
$shippingMethod = $totalService->shippingMethod;
if (empty($shippingMethod)) {