From 42b86f3cec9f236040ffa29f0089ed1189aa58a5 Mon Sep 17 00:00:00 2001 From: Edward Yang Date: Thu, 1 Dec 2022 15:23:01 +0800 Subject: [PATCH] code format for shipping service --- beike/Shop/Services/TotalServices/ShippingService.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/beike/Shop/Services/TotalServices/ShippingService.php b/beike/Shop/Services/TotalServices/ShippingService.php index 09b166fc..e5458f66 100644 --- a/beike/Shop/Services/TotalServices/ShippingService.php +++ b/beike/Shop/Services/TotalServices/ShippingService.php @@ -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)) {