From f4c56ad7572e66b748346f5bac27c127ba8b4aba Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Wed, 27 Aug 2025 16:21:29 +1200 Subject: [PATCH] Format --- src/Appwrite/Utopia/Request/Filters/V20.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Appwrite/Utopia/Request/Filters/V20.php b/src/Appwrite/Utopia/Request/Filters/V20.php index e4d803b2a8..6ca6171eb9 100644 --- a/src/Appwrite/Utopia/Request/Filters/V20.php +++ b/src/Appwrite/Utopia/Request/Filters/V20.php @@ -101,8 +101,7 @@ class V20 extends Filter ?string $collectionId = null, ?string $prefix = null, int $depth = 1, - ): array - { + ): array { $databaseId ??= $this->getParamValue('databaseId'); $collectionId ??= $this->getParamValue('collectionId'); @@ -142,13 +141,13 @@ class V20 extends Filter $key = $attr['key']; $fullKey = $prefix ? $prefix . '.' . $key : $key; - + // Add the wildcard select for this relationship $relationshipKeys[] = $fullKey . '.*'; // Get the related collection for nested relationships $relatedCollectionId = $attr['relatedCollection'] ?? null; - + if ($relatedCollectionId) { // Recursively get nested relationship keys $nestedKeys = $this->getRelatedCollectionKeys( @@ -157,7 +156,7 @@ class V20 extends Filter $fullKey, $depth + 1, ); - + $relationshipKeys = \array_merge($relationshipKeys, $nestedKeys); } }