From 6fb7fdb5c6bd9ae3d97e27aaeb36c8afae8d855e Mon Sep 17 00:00:00 2001 From: lee-to Date: Sat, 1 Feb 2025 07:50:02 +0000 Subject: [PATCH] Fix styling --- src/Laravel/src/Fields/Relationships/ModelRelationField.php | 2 +- src/UI/src/Fields/FormElement.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Laravel/src/Fields/Relationships/ModelRelationField.php b/src/Laravel/src/Fields/Relationships/ModelRelationField.php index 8202937d6..25c12ced1 100644 --- a/src/Laravel/src/Fields/Relationships/ModelRelationField.php +++ b/src/Laravel/src/Fields/Relationships/ModelRelationField.php @@ -91,7 +91,7 @@ public function __construct( } // required to create field entities and load assets - if ($this instanceof HasFieldsContract && !$this->isExcludeInstancing() && ! $this->isMorph()) { + if ($this instanceof HasFieldsContract && ! $this->isExcludeInstancing() && ! $this->isMorph()) { $this->excludeInstancing(); $this->getResource()?->getFormFields(); } diff --git a/src/UI/src/Fields/FormElement.php b/src/UI/src/Fields/FormElement.php index 6aa677b58..223aaed53 100644 --- a/src/UI/src/Fields/FormElement.php +++ b/src/UI/src/Fields/FormElement.php @@ -545,7 +545,7 @@ public function getRequestValue(string|int|null $index = null): mixed ) ?? false ); - if($this->onRequestValue instanceof Closure) { + if ($this->onRequestValue instanceof Closure) { return \call_user_func( $this->onRequestValue, $value,