Skip to content

Commit 1a2c1bd

Browse files
linting
1 parent 69489c3 commit 1a2c1bd

1 file changed

Lines changed: 24 additions & 24 deletions

File tree

src/Database/Database.php

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2869,30 +2869,30 @@ public function updateAttribute(string $collection, string $id, ?string $type =
28692869
}
28702870
}
28712871

2872-
/**
2873-
* Since we allow changing type & size we need to validate index length
2874-
*/
2875-
if ($this->validate) {
2876-
$validator = new IndexValidator(
2877-
$attributes,
2878-
$originalIndexes,
2879-
$this->adapter->getMaxIndexLength(),
2880-
$this->adapter->getInternalIndexesKeys(),
2881-
$this->adapter->getSupportForIndexArray(),
2882-
$this->adapter->getSupportForSpatialIndexNull(),
2883-
$this->adapter->getSupportForSpatialIndexOrder(),
2884-
$this->adapter->getSupportForVectors(),
2885-
$this->adapter->getSupportForAttributes(),
2886-
$this->adapter->getSupportForMultipleFulltextIndexes(),
2887-
$this->adapter->getSupportForIdenticalIndexes(),
2888-
$this->adapter->getSupportForObjectIndexes(),
2889-
$this->adapter->getSupportForTrigramIndex(),
2890-
$this->adapter->getSupportForSpatialAttributes(),
2891-
$this->adapter->getSupportForIndex(),
2892-
$this->adapter->getSupportForUniqueIndex(),
2893-
$this->adapter->getSupportForFulltextIndex(),
2894-
$this->adapter->getSupportForObject()
2895-
);
2872+
/**
2873+
* Since we allow changing type & size we need to validate index length
2874+
*/
2875+
if ($this->validate) {
2876+
$validator = new IndexValidator(
2877+
$attributes,
2878+
$originalIndexes,
2879+
$this->adapter->getMaxIndexLength(),
2880+
$this->adapter->getInternalIndexesKeys(),
2881+
$this->adapter->getSupportForIndexArray(),
2882+
$this->adapter->getSupportForSpatialIndexNull(),
2883+
$this->adapter->getSupportForSpatialIndexOrder(),
2884+
$this->adapter->getSupportForVectors(),
2885+
$this->adapter->getSupportForAttributes(),
2886+
$this->adapter->getSupportForMultipleFulltextIndexes(),
2887+
$this->adapter->getSupportForIdenticalIndexes(),
2888+
$this->adapter->getSupportForObjectIndexes(),
2889+
$this->adapter->getSupportForTrigramIndex(),
2890+
$this->adapter->getSupportForSpatialAttributes(),
2891+
$this->adapter->getSupportForIndex(),
2892+
$this->adapter->getSupportForUniqueIndex(),
2893+
$this->adapter->getSupportForFulltextIndex(),
2894+
$this->adapter->getSupportForObject()
2895+
);
28962896

28972897
foreach ($indexes as $index) {
28982898
if (!$validator->isValid($index)) {

0 commit comments

Comments
 (0)