From 2b8c153594317807ff27fa893e3f7843f3406c17 Mon Sep 17 00:00:00 2001 From: Amer Chaudhary Date: Tue, 22 Oct 2024 20:48:58 +0500 Subject: [PATCH] fix(#6736) making CS Fixer happy --- .../Factory/Property/EloquentPropertyMetadataFactory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Laravel/Eloquent/Metadata/Factory/Property/EloquentPropertyMetadataFactory.php b/src/Laravel/Eloquent/Metadata/Factory/Property/EloquentPropertyMetadataFactory.php index 977f348144..c88c96585e 100644 --- a/src/Laravel/Eloquent/Metadata/Factory/Property/EloquentPropertyMetadataFactory.php +++ b/src/Laravel/Eloquent/Metadata/Factory/Property/EloquentPropertyMetadataFactory.php @@ -96,13 +96,13 @@ public function create(string $resourceClass, string $property, array $options = continue; } - $collection = match($relation['type']) { + $collection = match ($relation['type']) { HasMany::class, HasManyThrough::class, BelongsToMany::class, MorphMany::class, MorphToMany::class => true, - default => false + default => false, }; $type = new Type($collection ? Type::BUILTIN_TYPE_ITERABLE : Type::BUILTIN_TYPE_OBJECT, false, $relation['related'], $collection, collectionValueType: new Type(Type::BUILTIN_TYPE_OBJECT, false, $relation['related']));