Test Failed
Push — master ( 4748e5...bbb682 )
by Petr
12:47
created
Category
php-src/Storage/AuthorizationCodes/AuthorizationCodeFacade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     /**
31 31
      * Create authorization code
32 32
      */
33
-    public function create(IClient $client, string|int|null $userId, array $scope = []): IAuthorizationCode
33
+    public function create(IClient $client, string | int | null $userId, array $scope = []): IAuthorizationCode
34 34
     {
35 35
         $accessExpires = new DateTime;
36 36
         $accessExpires->modify('+' . $this->lifetime . ' seconds');
Please login to merge, or discard this patch.
php-src/Storage/ITokens.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,13 +22,13 @@
 block discarded – undo
22 22
      * Get user ID
23 23
      * @return string|int|null
24 24
      */
25
-    public function getUserId(): string|int|null;
25
+    public function getUserId(): string | int | null;
26 26
 
27 27
     /**
28 28
      * Get client ID
29 29
      * @return string|int
30 30
      */
31
-    public function getClientId(): string|int;
31
+    public function getClientId(): string | int;
32 32
 
33 33
     /**
34 34
      * Get scope
Please login to merge, or discard this patch.
php-src/Storage/RefreshTokens/RefreshToken.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
     public function __construct(
26 26
         private readonly string $refreshToken,
27 27
         private readonly DateTime $expires,
28
-        private readonly string|int $clientId,
29
-        private readonly string|int|null $userId,
28
+        private readonly string | int $clientId,
29
+        private readonly string | int | null $userId,
30 30
         private readonly array $scope = [],
31 31
     )
32 32
     {
@@ -42,12 +42,12 @@  discard block
 block discarded – undo
42 42
         return $this->expires;
43 43
     }
44 44
 
45
-    public function getClientId(): string|int
45
+    public function getClientId(): string | int
46 46
     {
47 47
         return $this->clientId;
48 48
     }
49 49
 
50
-    public function getUserId(): string|int|null
50
+    public function getUserId(): string | int | null
51 51
     {
52 52
         return $this->userId;
53 53
     }
Please login to merge, or discard this patch.
php-src/Storage/RefreshTokens/RefreshTokenFacade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     /**
31 31
      * Create new refresh token
32 32
      */
33
-    public function create(IClient $client, string|int|null $userId, array $scope = []): IRefreshToken
33
+    public function create(IClient $client, string | int | null $userId, array $scope = []): IRefreshToken
34 34
     {
35 35
         $expires = new DateTime;
36 36
         $expires->modify('+' . $this->lifetime . ' seconds');
Please login to merge, or discard this patch.
php-src/Storage/ITokenFacade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      * @throws InvalidScopeException
29 29
      * @return ITokens
30 30
      */
31
-    public function create(IClient $client, string|int|null $userId, array $scope = []): ITokens;
31
+    public function create(IClient $client, string | int | null $userId, array $scope = []): ITokens;
32 32
 
33 33
     /**
34 34
      * Returns token entity
Please login to merge, or discard this patch.
php-src/Storage/Clients/IClientStorage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
      * @param string|null $clientSecret
17 17
      * @return IClient|null
18 18
      */
19
-    public function getClient(string|int $clientId, #[\SensitiveParameter] ?string $clientSecret = null): ?IClient;
19
+    public function getClient(string | int $clientId, #[\SensitiveParameter] ?string $clientSecret = null): ?IClient;
20 20
 
21 21
     /**
22 22
      * Can client use given grant type
@@ -24,5 +24,5 @@  discard block
 block discarded – undo
24 24
      * @param string $grantType
25 25
      * @return bool
26 26
      */
27
-    public function canUseGrantType(string|int $clientId, string $grantType): bool;
27
+    public function canUseGrantType(string | int $clientId, string $grantType): bool;
28 28
 }
Please login to merge, or discard this patch.
php-src/Storage/Clients/IClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,13 +14,13 @@
 block discarded – undo
14 14
      * Get client id
15 15
      * @return string|int
16 16
      */
17
-    public function getId(): string|int;
17
+    public function getId(): string | int;
18 18
 
19 19
     /**
20 20
      * Get client secret code
21 21
      * @return string|int
22 22
      */
23
-    public function getSecret(): string|int;
23
+    public function getSecret(): string | int;
24 24
 
25 25
     /**
26 26
      * Get client redirect URL
Please login to merge, or discard this patch.
php-src/Storage/Clients/Client.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,14 +15,14 @@
 block discarded – undo
15 15
     use SmartObject;
16 16
 
17 17
     public function __construct(
18
-        private readonly string|int $id,
18
+        private readonly string | int $id,
19 19
         #[\SensitiveParameter] private readonly string $secret,
20 20
         private readonly string $redirectUrl
21 21
     )
22 22
     {
23 23
     }
24 24
 
25
-    public function getId(): string|int
25
+    public function getId(): string | int
26 26
     {
27 27
         return $this->id;
28 28
     }
Please login to merge, or discard this patch.
php-src/Storage/Dibi/AccessTokenStorage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
         return new AccessToken(
120 120
             strval($row['access_token']),
121 121
             new DateTime(strval($row['expires_at'])),
122
-            is_numeric($row['client_id'])? intval($row['client_id']) : strval($row['client_id']),
122
+            is_numeric($row['client_id']) ? intval($row['client_id']) : strval($row['client_id']),
123 123
             is_null($row['user_id']) ? null : strval($row['user_id']),
124 124
             array_map('strval', array_keys($scopes))
125 125
         );
Please login to merge, or discard this patch.