From 699cf28ba12a3248462574ce522aa02534e26c00 Mon Sep 17 00:00:00 2001 From: lee-to Date: Wed, 2 Oct 2024 07:03:21 +0000 Subject: [PATCH] Fix styling --- src/Traits/Fields/OnlyLink.php | 2 +- tests/Feature/MoonShineRequestTest.php | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Traits/Fields/OnlyLink.php b/src/Traits/Fields/OnlyLink.php index 12e5b752d..5d587f6c7 100644 --- a/src/Traits/Fields/OnlyLink.php +++ b/src/Traits/Fields/OnlyLink.php @@ -60,7 +60,7 @@ public function isOnlyLink(): bool public function getOnlyLinkRelation(): string { - if(!is_null($this->linkRelation)) { + if (! is_null($this->linkRelation)) { return $this->linkRelation; } diff --git a/tests/Feature/MoonShineRequestTest.php b/tests/Feature/MoonShineRequestTest.php index 9ec29057a..f75ca52c7 100644 --- a/tests/Feature/MoonShineRequestTest.php +++ b/tests/Feature/MoonShineRequestTest.php @@ -6,7 +6,6 @@ use MoonShine\Fields\Relationships\HasMany; use MoonShine\Models\MoonshineUser; use MoonShine\MoonShineRequest; -use MoonShine\Tests\Fixtures\Resources\TestCommentResource; use MoonShine\Tests\Fixtures\Resources\TestImageResource; use MoonShine\Tests\Fixtures\Resources\TestResourceBuilder; @@ -57,4 +56,3 @@ ->and(moonshineRequest()->getParentRelationName()) ->toBe((string) str($relationName)->camel()); })->with(['01J95W9RR73FH93AFCP0YP2VP1', 'ab193d8c-09d5-4185-a62d-d93ee1dd3bfe']); -