mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
PR review fixes
This commit is contained in:
@@ -233,10 +233,6 @@ class Project extends Model
|
||||
|
||||
private function expandServices(Document $document): void
|
||||
{
|
||||
if (!$document->isSet('services')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$values = $document->getAttribute('services', []);
|
||||
$services = [];
|
||||
|
||||
@@ -256,10 +252,6 @@ class Project extends Model
|
||||
|
||||
private function expandProtocols(Document $document): void
|
||||
{
|
||||
if (!$document->isSet('apis')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$values = $document->getAttribute('apis', []);
|
||||
$protocols = [];
|
||||
|
||||
@@ -275,10 +267,6 @@ class Project extends Model
|
||||
|
||||
private function expandAuthMethods(Document $document): void
|
||||
{
|
||||
if (!$document->isSet('auths')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$values = $document->getAttribute('auths', []);
|
||||
$authMethods = [];
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ class ProjectProtocol extends Model
|
||||
'type' => self::TYPE_STRING,
|
||||
'description' => 'Protocol ID.',
|
||||
'default' => '',
|
||||
'example' => 'email-password',
|
||||
'example' => 'graphql',
|
||||
])
|
||||
->addRule('enabled', [
|
||||
'type' => self::TYPE_BOOLEAN,
|
||||
|
||||
@@ -14,7 +14,7 @@ class ProjectService extends Model
|
||||
'type' => self::TYPE_STRING,
|
||||
'description' => 'Service ID.',
|
||||
'default' => '',
|
||||
'example' => 'email-password',
|
||||
'example' => 'sites',
|
||||
])
|
||||
->addRule('enabled', [
|
||||
'type' => self::TYPE_BOOLEAN,
|
||||
|
||||
Reference in New Issue
Block a user