Completed
Push — devel ( 5aa576...293fc2 )
by Philippe
07:12 queued 04:28
created
src/interfaces/RefreshTokenServiceInterface.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
     public function findAllByUserId($userId);
56 56
 
57 57
     /**
58
-     * @param string $clientId
58
+     * @param string $userId
59 59
      * @return RefreshTokenModelInterface[]
60 60
      */
61 61
     public function findAllByClientId($userId);
Please login to merge, or discard this patch.
src/services/redis/AccessTokenService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     protected function getAccessTokenKey($aid)
57 57
     {
58
-        return $this->namespace . ':' . $aid;
58
+        return $this->namespace.':'.$aid;
59 59
     }
60 60
 
61 61
     /**
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     protected function getUserAccessTokensKey($uid)
67 67
     {
68
-        return $this->userNamespace . ':' . $uid . ':accessTokens';
68
+        return $this->userNamespace.':'.$uid.':accessTokens';
69 69
     }
70 70
 
71 71
     /**
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      */
76 76
     protected function getClientAccessTokensKey($cid)
77 77
     {
78
-        return $this->clientNamespace . ':' . $cid . ':accessTokens';
78
+        return $this->clientNamespace.':'.$cid.':accessTokens';
79 79
     }
80 80
 
81 81
     /**
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
         $userAccessTokens = $this->db->executeCommand('SMEMBERS', [$userAccessTokensKey]);
290 290
         $accessTokens = [];
291 291
         if ((is_array($userAccessTokens) === true) && (count($userAccessTokens) > 0)) {
292
-            foreach($userAccessTokens as $userAccessTokenId) {
292
+            foreach ($userAccessTokens as $userAccessTokenId) {
293 293
                 $accessTokens[] = $this->findOne($userAccessTokenId);
294 294
             }
295 295
         }
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
         $clientAccessTokens = $this->db->executeCommand('SMEMBERS', [$clientAccessTokensKey]);
306 306
         $accessTokens = [];
307 307
         if ((is_array($clientAccessTokens) === true) && (count($clientAccessTokens) > 0)) {
308
-            foreach($clientAccessTokens as $clientAccessTokenId) {
308
+            foreach ($clientAccessTokens as $clientAccessTokenId) {
309 309
                 $accessTokens[] = $this->findOne($clientAccessTokenId);
310 310
             }
311 311
         }
Please login to merge, or discard this patch.
src/services/redis/RefreshTokenService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     protected function getRefreshTokenKey($rid)
56 56
     {
57
-        return $this->namespace . ':' . $rid;
57
+        return $this->namespace.':'.$rid;
58 58
     }
59 59
 
60 60
     /**
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      */
65 65
     protected function getUserRefreshTokensKey($uid)
66 66
     {
67
-        return $this->userNamespace . ':' . $uid . ':refreshTokens';
67
+        return $this->userNamespace.':'.$uid.':refreshTokens';
68 68
     }
69 69
 
70 70
     /**
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     protected function getClientRefreshTokensKey($cid)
76 76
     {
77
-        return $this->clientNamespace . ':' . $cid . ':refreshTokens';
77
+        return $this->clientNamespace.':'.$cid.':refreshTokens';
78 78
     }
79 79
 
80 80
     /**
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
         $userRefreshTokens = $this->db->executeCommand('SMEMBERS', [$userRefreshTokensKey]);
290 290
         $refreshTokens = [];
291 291
         if ((is_array($userRefreshTokens) === true) && (count($userRefreshTokens) > 0)) {
292
-            foreach($userRefreshTokens as $userRefreshTokenId) {
292
+            foreach ($userRefreshTokens as $userRefreshTokenId) {
293 293
                 $refreshTokens[] = $this->findOne($userRefreshTokenId);
294 294
             }
295 295
         }
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
         $clientRefreshTokens = $this->db->executeCommand('SMEMBERS', [$clientRefreshTokensKey]);
306 306
         $refreshTokens = [];
307 307
         if ((is_array($clientRefreshTokens) === true) && (count($clientRefreshTokens) > 0)) {
308
-            foreach($clientRefreshTokens as $clientRefreshTokenId) {
308
+            foreach ($clientRefreshTokens as $clientRefreshTokenId) {
309 309
                 $refreshTokens[] = $this->findOne($clientRefreshTokenId);
310 310
             }
311 311
         }
Please login to merge, or discard this patch.
src/interfaces/AccessTokenServiceInterface.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
     public function findAllByUserId($userId);
56 56
 
57 57
     /**
58
-     * @param string $clientId
58
+     * @param string $userId
59 59
      * @return RefreshTokenModelInterface[]
60 60
      */
61 61
     public function findAllByClientId($userId);
Please login to merge, or discard this patch.