remove unecessary semi colons
This commit is contained in:
parent
95615416a6
commit
c61dd1e261
|
@ -71,4 +71,4 @@ return [ // List of publicly visible scopes
|
|||
'description' => 'Access to read your project\'s health status',
|
||||
],
|
||||
];
|
||||
;
|
||||
|
||||
|
|
|
@ -194,7 +194,6 @@ App::get('/v1/avatars/image')
|
|||
->addHeader('Expires', $date)
|
||||
->addHeader('X-Appwrite-Cache', 'miss')
|
||||
->send($data);
|
||||
;
|
||||
|
||||
unset($image);
|
||||
});
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue