From 5ab00829310f26fe9e32f41491f474055e0e6f8f Mon Sep 17 00:00:00 2001 From: "Ronald A. Richardson" Date: Fri, 23 Feb 2024 13:39:42 +0800 Subject: [PATCH] ran linter --- server/src/Expansions/EntityExpansion.php | 2 +- server/src/Http/Controllers/v1/CheckoutController.php | 4 ++-- server/src/Models/Checkout.php | 4 ++-- server/src/Models/StoreLocation.php | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/server/src/Expansions/EntityExpansion.php b/server/src/Expansions/EntityExpansion.php index d9ea5e1..7a893a9 100644 --- a/server/src/Expansions/EntityExpansion.php +++ b/server/src/Expansions/EntityExpansion.php @@ -2,9 +2,9 @@ namespace Fleetbase\Storefront\Expansions; +use Fleetbase\Build\Expansion; use Fleetbase\FleetOps\Models\Entity; use Fleetbase\Storefront\Models\Product; -use Fleetbase\Build\Expansion; class EntityExpansion implements Expansion { diff --git a/server/src/Http/Controllers/v1/CheckoutController.php b/server/src/Http/Controllers/v1/CheckoutController.php index cac9810..04d9c57 100644 --- a/server/src/Http/Controllers/v1/CheckoutController.php +++ b/server/src/Http/Controllers/v1/CheckoutController.php @@ -7,7 +7,6 @@ use Fleetbase\FleetOps\Models\Entity; use Fleetbase\FleetOps\Models\Order; use Fleetbase\FleetOps\Models\Payload; -use Fleetbase\Storefront\Models\Customer; use Fleetbase\FleetOps\Models\Place; use Fleetbase\FleetOps\Models\ServiceQuote; use Fleetbase\FleetOps\Support\Utils; @@ -18,6 +17,7 @@ use Fleetbase\Storefront\Http\Requests\InitializeCheckoutRequest; use Fleetbase\Storefront\Models\Cart; use Fleetbase\Storefront\Models\Checkout; +use Fleetbase\Storefront\Models\Customer; use Fleetbase\Storefront\Models\Gateway; use Fleetbase\Storefront\Models\Product; use Fleetbase\Storefront\Models\Store; @@ -346,7 +346,7 @@ public function captureOrder(CaptureOrderRequest $request) $transaction = Transaction::create([ 'company_uuid' => session('company'), 'customer_uuid' => $customer->uuid, - 'customer_type' => Utils::getMutationType('fleet-ops:contact'), + 'customer_type' => Utils::getMutationType('fleet-ops:contact'), 'gateway_transaction_id' => Utils::or($transactionDetails, ['id', 'transaction_id']) ?? Transaction::generateNumber(), 'gateway' => $gateway->code, 'gateway_uuid' => $gateway->uuid, diff --git a/server/src/Models/Checkout.php b/server/src/Models/Checkout.php index 8ae0fce..c804fed 100644 --- a/server/src/Models/Checkout.php +++ b/server/src/Models/Checkout.php @@ -3,9 +3,9 @@ namespace Fleetbase\Storefront\Models; use Fleetbase\Casts\Json; -use Fleetbase\Support\Utils; -use Fleetbase\Models\Company; use Fleetbase\FleetOps\Models\ServiceQuote; +use Fleetbase\Models\Company; +use Fleetbase\Support\Utils; use Fleetbase\Traits\HasOptionsAttributes; use Fleetbase\Traits\HasPublicid; use Fleetbase\Traits\HasUuid; diff --git a/server/src/Models/StoreLocation.php b/server/src/Models/StoreLocation.php index d064bae..24c428c 100644 --- a/server/src/Models/StoreLocation.php +++ b/server/src/Models/StoreLocation.php @@ -3,11 +3,11 @@ namespace Fleetbase\Storefront\Models; use Fleetbase\FleetOps\Models\Place; +use Fleetbase\LaravelMysqlSpatial\Eloquent\SpatialTrait; use Fleetbase\Models\User; use Fleetbase\Traits\HasApiModelBehavior; use Fleetbase\Traits\HasPublicid; use Fleetbase\Traits\HasUuid; -use Fleetbase\LaravelMysqlSpatial\Eloquent\SpatialTrait; class StoreLocation extends StorefrontModel {