mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Apply code formatting
This commit is contained in:
1 parent
bf50409cbd
commit
371ee48fb6
6 files changed
+4
-11
No files matched your search
@@ -283,7 +283,6 @@ class Appwrite extends Destination
|
||||
$scope = 'sites.write';
|
||||
$this->sites->create('', '', Framework::OTHER(), BuildRuntime::STATIC1());
|
||||
}
|
||||
|
||||
} catch (AppwriteException $e) {
|
||||
if ($e->getCode() === 403) {
|
||||
throw new \Exception(
|
||||
@@ -1084,7 +1083,6 @@ class Appwrite extends Destination
|
||||
fn () => $dbForDatabases->createDocuments($collectionId, $this->rowBuffer)
|
||||
),
|
||||
};
|
||||
|
||||
} finally {
|
||||
$this->rowBuffer = [];
|
||||
}
|
||||
@@ -1141,6 +1139,7 @@ class Appwrite extends Destination
|
||||
'none' => Compression::NONE(),
|
||||
'gzip' => Compression::GZIP(),
|
||||
'zstd' => Compression::ZSTD(),
|
||||
// no break
|
||||
default => throw new \Exception('Invalid Compression: ' . $resource->getCompression(), Exception::CODE_VALIDATION),
|
||||
};
|
||||
|
||||
@@ -1464,6 +1463,7 @@ class Appwrite extends Destination
|
||||
'bun-1.0' => Runtime::BUN10(),
|
||||
'bun-1.1' => Runtime::BUN11(),
|
||||
'go-1.23' => Runtime::GO123(),
|
||||
// no break
|
||||
default => throw new \Exception('Invalid Runtime: ' . $resource->getRuntime(), Exception::CODE_VALIDATION),
|
||||
};
|
||||
|
||||
@@ -1683,6 +1683,7 @@ class Appwrite extends Destination
|
||||
'flutter-3.29' => BuildRuntime::FLUTTER329(),
|
||||
'flutter-3.32' => BuildRuntime::FLUTTER332(),
|
||||
'flutter-3.35' => BuildRuntime::FLUTTER335(),
|
||||
// no break
|
||||
default => throw new \Exception('Invalid Build Runtime: ' . $resource->getBuildRuntime(), Exception::CODE_VALIDATION),
|
||||
};
|
||||
|
||||
|
||||
@@ -316,5 +316,4 @@ class JSON extends Destination
|
||||
return $this->convertValueToJSON($item);
|
||||
}, $value);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -67,5 +67,4 @@ class EnvVar extends Resource
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -144,7 +144,6 @@ class Appwrite extends Source
|
||||
default:
|
||||
throw new \Exception('Unknown source', Exception::CODE_VALIDATION);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static function getName(): string
|
||||
@@ -354,7 +353,6 @@ class Appwrite extends Source
|
||||
*/
|
||||
private function reportStorage(array $resources, array &$report, array $resourceIds = []): void
|
||||
{
|
||||
|
||||
if (\in_array(Resource::TYPE_BUCKET, $resources)) {
|
||||
$bucketQueries = $this->buildQueries(
|
||||
resourceType: Resource::TYPE_BUCKET,
|
||||
@@ -869,7 +867,6 @@ class Appwrite extends Source
|
||||
'enabled' => $database['enabled'] ?? true,
|
||||
]);
|
||||
$databases[] = $newDatabase;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -997,7 +994,7 @@ class Appwrite extends Source
|
||||
}
|
||||
|
||||
/** @var Table $table */
|
||||
$col = match($table->getDatabase()->getType()) {
|
||||
$col = match ($table->getDatabase()->getType()) {
|
||||
Resource::TYPE_DATABASE_VECTORSDB => self::getColumn($table, $column)->getAttribute(),
|
||||
default => self::getColumn($table, $column),
|
||||
};
|
||||
@@ -2499,7 +2496,6 @@ class Appwrite extends Source
|
||||
|
||||
default => throw new \InvalidArgumentException("Unsupported column type: {$column['type']}"),
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -108,5 +108,4 @@ interface Reader
|
||||
*/
|
||||
public function queryLimit(int $limit): mixed;
|
||||
public function getSupportForAttributes(): bool;
|
||||
|
||||
}
|
||||
@@ -667,7 +667,6 @@ class Firebase extends Source
|
||||
previous: $e
|
||||
));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private function exportBuckets(int $batchsize): void
|
||||
|
||||
Reference in new issue
Block a user