lint fix
This commit is contained in:
parent
07b7a9db0f
commit
c83e4db23d
2 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -548,8 +548,9 @@ Database::addFilter(
|
|||
Query::select(['type']),
|
||||
Query::limit(APP_LIMIT_SUBQUERY),
|
||||
]));
|
||||
if($provider)
|
||||
if ($provider) {
|
||||
return $provider->getAttribute('type');
|
||||
}
|
||||
return null;
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue