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']); -