mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Run Linter
This commit is contained in:
@@ -4894,4 +4894,4 @@ App::delete('/v1/account/identities/:identityId')
|
||||
->setPayload($response->output($identity, Response::MODEL_IDENTITY));
|
||||
|
||||
return $response->noContent();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1276,4 +1276,4 @@ App::get('/v1/cards/cloud-og')
|
||||
->addHeader('Cache-Control', 'private, max-age=3888000') // 45 days
|
||||
->setContentType('image/png')
|
||||
->file($baseImage->getImageBlob());
|
||||
});
|
||||
});
|
||||
|
||||
@@ -125,4 +125,4 @@ App::post('/v1/console/assistant')
|
||||
curl_close($ch);
|
||||
|
||||
$response->chunk('', true);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -4415,4 +4415,4 @@ App::get('/v1/databases/:databaseId/collections/:collectionId/usage')
|
||||
'documentsTotal' => $usage[$metrics[0]]['total'],
|
||||
'documents' => $usage[$metrics[0]]['data'],
|
||||
]), Response::MODEL_USAGE_COLLECTION);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -2851,4 +2851,4 @@ App::get('/v1/functions/templates/:templateId')
|
||||
}
|
||||
|
||||
$response->dynamic(new Document($template), Response::MODEL_TEMPLATE_FUNCTION);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -331,4 +331,4 @@ App::shutdown()
|
||||
->inject('project')
|
||||
->action(function (Document $project) {
|
||||
Schema::setDirty($project->getId());
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1054,4 +1054,4 @@ App::get('/v1/health/stats') // Currently only used internally
|
||||
'memory_used_peak_human' => $cacheStats['used_memory_peak_human'] ?? 0,
|
||||
],
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -294,4 +294,4 @@ App::get('/v1/locale/languages')
|
||||
$list = array_map(fn ($node) => new Document($node), $list);
|
||||
|
||||
$response->dynamic(new Document(['languages' => $list, 'total' => \count($list)]), Response::MODEL_LANGUAGE_LIST);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -4254,4 +4254,4 @@ App::delete('/v1/messaging/messages/:messageId')
|
||||
->setPayload($response->output($message, Response::MODEL_MESSAGE));
|
||||
|
||||
$response->noContent();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -3,19 +3,14 @@
|
||||
use Appwrite\Event\Event;
|
||||
use Appwrite\Event\Migration;
|
||||
use Appwrite\Extend\Exception;
|
||||
use Appwrite\Permission;
|
||||
use Appwrite\Role;
|
||||
use Appwrite\SDK\AuthType;
|
||||
use Appwrite\SDK\ContentType;
|
||||
use Appwrite\SDK\Method;
|
||||
use Appwrite\SDK\MethodType;
|
||||
use Appwrite\SDK\Response as SDKResponse;
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Migrations;
|
||||
use Appwrite\Utopia\Request;
|
||||
use Appwrite\Utopia\Response;
|
||||
use Utopia\App;
|
||||
use Utopia\Database\Database;
|
||||
use Utopia\Database\DateTime;
|
||||
use Utopia\Database\Document;
|
||||
use Utopia\Database\Exception\Query as QueryException;
|
||||
use Utopia\Database\Helpers\ID;
|
||||
@@ -26,9 +21,7 @@ use Utopia\Migration\Sources\Appwrite;
|
||||
use Utopia\Migration\Sources\Firebase;
|
||||
use Utopia\Migration\Sources\NHost;
|
||||
use Utopia\Migration\Sources\Supabase;
|
||||
use Utopia\System\System;
|
||||
use Utopia\Validator\ArrayList;
|
||||
use Utopia\Validator\Host;
|
||||
use Utopia\Validator\Integer;
|
||||
use Utopia\Validator\Text;
|
||||
use Utopia\Validator\URL;
|
||||
@@ -673,4 +666,4 @@ App::delete('/v1/migrations/:migrationId')
|
||||
$queueForEvents->setParam('migrationId', $migration->getId());
|
||||
|
||||
$response->noContent();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -570,4 +570,4 @@ App::delete('/v1/project/variables/:variableId')
|
||||
}
|
||||
|
||||
$response->noContent();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -2429,4 +2429,4 @@ App::delete('/v1/projects/:projectId/templates/email/:type/:locale')
|
||||
'replyTo' => $template['replyTo'],
|
||||
'message' => $template['message']
|
||||
]), Response::MODEL_EMAIL_TEMPLATE);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1942,4 +1942,4 @@ App::get('/v1/storage/:bucketId/usage')
|
||||
'files' => $usage[$metrics[0]]['data'],
|
||||
'storage' => $usage[$metrics[1]]['data'],
|
||||
]), Response::MODEL_USAGE_BUCKETS);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1408,4 +1408,4 @@ App::get('/v1/teams/:teamId/logs')
|
||||
'total' => $audit->countLogsByResource($resource),
|
||||
'logs' => $output,
|
||||
]), Response::MODEL_LOG_LIST);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -2465,4 +2465,4 @@ App::get('/v1/users/usage')
|
||||
'users' => $usage[$metrics[0]]['data'],
|
||||
'sessions' => $usage[$metrics[1]]['data'],
|
||||
]), Response::MODEL_USAGE_USERS);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1180,4 +1180,4 @@ foreach (Config::getParam('services', []) as $service) {
|
||||
// Check for any errors found while we were initialising the SDK Methods.
|
||||
if (!empty(Method::getErrors())) {
|
||||
throw new \Exception('Errors found during SDK initialization:' . PHP_EOL . implode(PHP_EOL, Method::getErrors()));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -275,4 +275,4 @@ class Schema
|
||||
{
|
||||
self::$dirty[$projectId] = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -473,4 +473,4 @@ class Mapper
|
||||
|
||||
throw new Exception('Unknown hash options implementation');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -324,4 +324,4 @@ class Specs extends Action
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,4 +8,4 @@ enum AuthType: string
|
||||
case KEY = APP_AUTH_TYPE_KEY;
|
||||
case SESSION = APP_AUTH_TYPE_SESSION;
|
||||
case ADMIN = APP_AUTH_TYPE_ADMIN;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,4 +12,4 @@ enum ContentType: string
|
||||
case HTML = 'text/html';
|
||||
case TEXT = 'text/plain';
|
||||
case ANY = '*/*';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -273,4 +273,4 @@ class Method
|
||||
{
|
||||
return self::$errors;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,4 +8,4 @@ enum MethodType: string
|
||||
case LOCATION = 'location';
|
||||
case GRAPHQL = 'graphql';
|
||||
case UPLOAD = 'upload';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,4 +24,4 @@ class Response
|
||||
{
|
||||
return $this->model;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -701,4 +701,4 @@ class OpenAPI3 extends Format
|
||||
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -711,4 +711,4 @@ class Swagger2 extends Format
|
||||
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user