1
0
Fork 0
mirror of synced 2024-06-02 10:54:44 +12:00

remove unecessary semi colons

This commit is contained in:
Everly Precia Suresh 2022-05-31 14:24:01 +00:00
parent 95615416a6
commit c61dd1e261
4 changed files with 2 additions and 5 deletions

View file

@ -71,4 +71,4 @@ return [ // List of publicly visible scopes
'description' => 'Access to read your project\'s health status',
],
];
;

View file

@ -194,7 +194,6 @@ App::get('/v1/avatars/image')
->addHeader('Expires', $date)
->addHeader('X-Appwrite-Cache', 'miss')
->send($data);
;
unset($image);
});

View file

@ -354,7 +354,6 @@ App::post('/v1/teams/:teamId/memberships')
}
$isOwner = Authorization::isRole('team:' . $team->getId() . '/owner');
;
if (!$isOwner && !$isPrivilegedUser && !$isAppUser) { // Not owner, not admin, not app (server)
throw new Exception('User is not allowed to send invitations for this team', 401, Exception::USER_UNAUTHORIZED);
@ -590,7 +589,6 @@ App::patch('/v1/teams/:teamId/memberships/:membershipId')
$isPrivilegedUser = Auth::isPrivilegedUser(Authorization::getRoles());
$isAppUser = Auth::isAppUser(Authorization::getRoles());
$isOwner = Authorization::isRole('team:' . $team->getId() . '/owner');
;
if (!$isOwner && !$isPrivilegedUser && !$isAppUser) { // Not owner, not admin, not app (server)
throw new Exception('User is not allowed to modify roles', 401, Exception::USER_UNAUTHORIZED);

View file

@ -725,7 +725,7 @@ App::delete('/v1/users/:userId')
->label('sdk.description', '/docs/references/users/delete.md')
->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT)
->label('sdk.response.model', Response::MODEL_NONE)
->param('userId', '', fn () => new UID(), 'User ID.')
->param('userId', '', new UID(), 'User ID.')
->inject('response')
->inject('dbForProject')
->inject('events')