From 11b07565dec15225b1936aa660c68564c4ccc3f1 Mon Sep 17 00:00:00 2001 From: glennjacobs Date: Thu, 21 Dec 2023 14:41:39 +0000 Subject: [PATCH] chore: fix code style --- packages/admin/src/Filament/Resources/ProductTypeResource.php | 2 +- packages/core/src/Base/ModelManifest.php | 2 +- packages/core/src/Base/ModelManifestInterface.php | 4 ---- packages/core/src/Base/Traits/HasModelExtending.php | 4 ---- packages/core/src/Models/Contracts/ProductType.php | 4 +++- 5 files changed, 5 insertions(+), 11 deletions(-) diff --git a/packages/admin/src/Filament/Resources/ProductTypeResource.php b/packages/admin/src/Filament/Resources/ProductTypeResource.php index dc0c5f91a8..8685bd76ab 100644 --- a/packages/admin/src/Filament/Resources/ProductTypeResource.php +++ b/packages/admin/src/Filament/Resources/ProductTypeResource.php @@ -9,8 +9,8 @@ use Lunar\Admin\Filament\Resources\ProductTypeResource\Pages; use Lunar\Admin\Support\Forms\Components\AttributeSelector; use Lunar\Admin\Support\Resources\BaseResource; -use Lunar\Models\Product; use Lunar\Models\Contracts\ProductType; +use Lunar\Models\Product; use Lunar\Models\ProductVariant; class ProductTypeResource extends BaseResource diff --git a/packages/core/src/Base/ModelManifest.php b/packages/core/src/Base/ModelManifest.php index 3804fb8fe3..9ef78509ef 100644 --- a/packages/core/src/Base/ModelManifest.php +++ b/packages/core/src/Base/ModelManifest.php @@ -4,8 +4,8 @@ use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\Route; -use Lunar\Models\Contracts; use Lunar\Models; +use Lunar\Models\Contracts; class ModelManifest implements ModelManifestInterface { diff --git a/packages/core/src/Base/ModelManifestInterface.php b/packages/core/src/Base/ModelManifestInterface.php index 4eaa5e97cf..a6a23228db 100644 --- a/packages/core/src/Base/ModelManifestInterface.php +++ b/packages/core/src/Base/ModelManifestInterface.php @@ -2,10 +2,6 @@ namespace Lunar\Base; -use Illuminate\Database\Eloquent\Model; -use Illuminate\Support\Collection; - interface ModelManifestInterface { - } diff --git a/packages/core/src/Base/Traits/HasModelExtending.php b/packages/core/src/Base/Traits/HasModelExtending.php index cfff92ec9e..0be81ff709 100644 --- a/packages/core/src/Base/Traits/HasModelExtending.php +++ b/packages/core/src/Base/Traits/HasModelExtending.php @@ -2,10 +2,6 @@ namespace Lunar\Base\Traits; -use Illuminate\Database\Eloquent\Model; -use Lunar\Facades\ModelManifest; -use ReflectionClass; - trait HasModelExtending { // diff --git a/packages/core/src/Models/Contracts/ProductType.php b/packages/core/src/Models/Contracts/ProductType.php index 49791c9379..a7bb94a776 100644 --- a/packages/core/src/Models/Contracts/ProductType.php +++ b/packages/core/src/Models/Contracts/ProductType.php @@ -2,4 +2,6 @@ namespace Lunar\Models\Contracts; -interface ProductType {} +interface ProductType +{ +}