code format for shipping service
This commit is contained in:
parent
088d3103fe
commit
42b86f3cec
|
|
@ -17,7 +17,12 @@ use Illuminate\Support\Str;
|
||||||
|
|
||||||
class ShippingService
|
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;
|
$shippingMethod = $totalService->shippingMethod;
|
||||||
if (empty($shippingMethod)) {
|
if (empty($shippingMethod)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue