Passed
Pull Request — master (#1516)
by
unknown
04:28
created
app/modules/web/Controllers/AuthTokenController.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -322,7 +322,7 @@
 block discarded – undo
322 322
             $tokenUserId = $this->authTokenService->getById($id)->getUserId();
323 323
 
324 324
             if (!$this->acl->checkUserAccess(Acl::AUTHTOKEN_EDIT) || !$this->authTokenOnlyUser($tokenUserId)) {
325
-             return $this->returnJsonResponse(JsonResponse::JSON_ERROR, __u('You don\'t have permission to do this operation'));
325
+                return $this->returnJsonResponse(JsonResponse::JSON_ERROR, __u('You don\'t have permission to do this operation'));
326 326
             }
327 327
 
328 328
             $form = new AuthTokenForm($this->dic, $id);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
159 159
         $authToken = $authTokenId ? $this->authTokenService->getById($authTokenId) : new AuthTokenData();
160 160
         $this->view->assign('authToken', $authToken);
161 161
 
162
-        if($this->acl->checkUserAccess(Acl::AUTHTOKEN_ONLY_USER) && !$this->session->getUserData()->getIsAdminApp()) {
162
+        if ($this->acl->checkUserAccess(Acl::AUTHTOKEN_ONLY_USER) && !$this->session->getUserData()->getIsAdminApp()) {
163 163
             $tokenUserId = $this->session->getUserData()->getId();
164 164
             $selectItems = [$this->userService->getById($tokenUserId)];
165 165
         } else {
Please login to merge, or discard this patch.
lib/SP/Repositories/AuthToken/AuthTokenRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@
 block discarded – undo
191 191
         $queryData->setFrom('AuthToken 
192 192
             INNER JOIN User ON AuthToken.userid = User.id');
193 193
 
194
-        if($this->context->getUserProfile()->isMgmApiOnlyUser() && !$this->context->getUserData()->getIsAdminApp()) {
194
+        if ($this->context->getUserProfile()->isMgmApiOnlyUser() && !$this->context->getUserData()->getIsAdminApp()) {
195 195
             $queryData->setWhere('User.id = ' . $this->context->getUserData()->getId());
196 196
         }
197 197
 
Please login to merge, or discard this patch.