From bfe861f8464db978db76390e57c3c8217706fb00 Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Tue, 20 Feb 2024 15:05:42 +0000 Subject: [PATCH] Run Linter --- src/Appwrite/Migration/Version/V20.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Appwrite/Migration/Version/V20.php b/src/Appwrite/Migration/Version/V20.php index abc2bdac8e..fdf2f5163f 100644 --- a/src/Appwrite/Migration/Version/V20.php +++ b/src/Appwrite/Migration/Version/V20.php @@ -78,14 +78,18 @@ class V20 extends Migration // Support database array type migration (user collections) if ($collectionType === 'projects') { - foreach ($this->documentsIterator('attributes', [ + foreach ( + $this->documentsIterator('attributes', [ Query::equal('array', [true]), - ]) as $attribute) { + ]) as $attribute + ) { $foundIndex = false; - foreach ($this->documentsIterator('indexes', [ + foreach ( + $this->documentsIterator('indexes', [ Query::equal('databaseInternalId', [$attribute['databaseInternalId']]), Query::equal('collectionInternalId', [$attribute['collectionInternalId']]), - ]) as $index) { + ]) as $index + ) { if (in_array($attribute['key'], $index['attributes'])) { $this->projectDB->deleteIndex($index['collectionId'], $index['$id']); $foundIndex = true;