mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
lint fix
This commit is contained in:
1 parent
07b7a9db0f
commit
c83e4db23d
2 files changed
+4
-3
No files matched your search
@@ -392,13 +392,13 @@ App::post('/v1/users/:userId/targets')
|
||||
|
||||
$user = $dbForProject->getDocument('users', $userId);
|
||||
|
||||
if($user->isEmpty()) {
|
||||
if ($user->isEmpty()) {
|
||||
throw new Exception(Exception::USER_NOT_FOUND);
|
||||
}
|
||||
|
||||
$target = $dbForProject->getDocument('targets', $targetId);
|
||||
|
||||
if(!$target->isEmpty()) {
|
||||
if (!$target->isEmpty()) {
|
||||
throw new Exception(Exception::USER_TARGET_ALREADY_EXISTS);
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -548,8 +548,9 @@ Database::addFilter(
|
||||
Query::select(['type']),
|
||||
Query::limit(APP_LIMIT_SUBQUERY),
|
||||
]));
|
||||
if($provider)
|
||||
if ($provider) {
|
||||
return $provider->getAttribute('type');
|
||||
}
|
||||
return null;
|
||||
}
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user