From c83e4db23d15fb210dcc6dd913e58263f91e927e Mon Sep 17 00:00:00 2001 From: prateek banga Date: Thu, 17 Aug 2023 19:02:07 +0530 Subject: [PATCH] lint fix --- app/controllers/api/users.php | 4 ++-- app/init.php | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/controllers/api/users.php b/app/controllers/api/users.php index 2290a77c3e..d47024f81e 100644 --- a/app/controllers/api/users.php +++ b/app/controllers/api/users.php @@ -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); } diff --git a/app/init.php b/app/init.php index 46b19cbe16..233e022a1e 100644 --- a/app/init.php +++ b/app/init.php @@ -548,8 +548,9 @@ Database::addFilter( Query::select(['type']), Query::limit(APP_LIMIT_SUBQUERY), ])); - if($provider) + if ($provider) { return $provider->getAttribute('type'); + } return null; } );