Failed Conditions
Pull Request — master (#26)
by Florent
09:49 queued 05:56
created
src/Component/Server/Event/RefreshToken/RefreshTokenCreatedEvent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      *
113 113
      * @return RefreshTokenCreatedEvent
114 114
      */
115
-    public static function create(RefreshTokenId $refreshTokenId, ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, \DateTimeImmutable $expiresAt, array $scopes, ? ResourceServerId $resourceServerId): RefreshTokenCreatedEvent
115
+    public static function create(RefreshTokenId $refreshTokenId, ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, \DateTimeImmutable $expiresAt, array $scopes, ? ResourceServerId $resourceServerId) : RefreshTokenCreatedEvent
116 116
     {
117 117
         return new self($refreshTokenId, $resourceOwnerId, $clientId, $parameters, $metadatas, $expiresAt, $scopes, $resourceServerId, null, null);
118 118
     }
Please login to merge, or discard this patch.
src/Component/Server/Endpoint/UserInfo/UserInfoEndpoint.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      *
102 102
      * @return string
103 103
      */
104
-    private function buildUserinfoContent(Client $client, UserAccountInterface $userAccount, AccessToken $accessToken, ? bool &$isJwt): string
104
+    private function buildUserinfoContent(Client $client, UserAccountInterface $userAccount, AccessToken $accessToken, ? bool & $isJwt) : string
105 105
     {
106 106
         $isJwt = false;
107 107
         $requestedClaims = $this->getEndpointClaims($accessToken);
Please login to merge, or discard this patch.
src/Component/Server/Endpoint/UserInfo/UserInfo.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      *
65 65
      * @return array
66 66
      */
67
-    public function getUserinfo(Client $client, UserAccountInterface $userAccount, string $redirectUri, array $requestClaims, array $scopes, ? string $claimsLocales): array
67
+    public function getUserinfo(Client $client, UserAccountInterface $userAccount, string $redirectUri, array $requestClaims, array $scopes, ? string $claimsLocales) : array
68 68
     {
69 69
         $requestClaims = array_merge(
70 70
             $this->getClaimsFromClaimScope($scopes),
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      *
109 109
      * @return array
110 110
      */
111
-    private function getClaimValues(UserAccountInterface $userAccount, array $claims, ? string $claimsLocales): array
111
+    private function getClaimValues(UserAccountInterface $userAccount, array $claims, ? string $claimsLocales) : array
112 112
     {
113 113
         $result = [];
114 114
         if (null === $claimsLocales) {
Please login to merge, or discard this patch.
src/Component/Server/Endpoint/Token/GrantTypeData.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      *
73 73
      * @return GrantTypeData
74 74
      */
75
-    public static function create(? Client $client): GrantTypeData
75
+    public static function create(? Client $client) : GrantTypeData
76 76
     {
77 77
         return new self($client);
78 78
     }
Please login to merge, or discard this patch.
Server/Command/InitialAccessToken/CreateInitialAccessTokenCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      *
51 51
      * @return CreateInitialAccessTokenCommand
52 52
      */
53
-    public static function create(UserAccountId $userAccountId, ? \DateTimeImmutable $expiresAt, ? DataTransporter $dataTransporter): CreateInitialAccessTokenCommand
53
+    public static function create(UserAccountId $userAccountId, ? \DateTimeImmutable $expiresAt, ? DataTransporter $dataTransporter) : CreateInitialAccessTokenCommand
54 54
     {
55 55
         return new self($userAccountId, $expiresAt, $dataTransporter);
56 56
     }
Please login to merge, or discard this patch.
src/Component/Server/Command/AccessToken/CreateAccessTokenCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      *
95 95
      * @return CreateAccessTokenCommand
96 96
      */
97
-    public static function create(ClientId $clientId, ResourceOwnerId $resourceOwnerId, DataBag $parameters, DataBag $metadatas, array $scopes, ? \DateTimeImmutable $expiresAt, ? ResourceServerId $resourceServerId, ? DataTransporter $dataTransporter): CreateAccessTokenCommand
97
+    public static function create(ClientId $clientId, ResourceOwnerId $resourceOwnerId, DataBag $parameters, DataBag $metadatas, array $scopes, ? \DateTimeImmutable $expiresAt, ? ResourceServerId $resourceServerId, ? DataTransporter $dataTransporter) : CreateAccessTokenCommand
98 98
     {
99 99
         return new self($clientId, $resourceOwnerId, $parameters, $metadatas, $scopes, $expiresAt, $resourceServerId, $dataTransporter);
100 100
     }
Please login to merge, or discard this patch.
Server/Command/AccessToken/CreateAccessTokenWithRefreshTokenCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      *
95 95
      * @return CreateAccessTokenWithRefreshTokenCommand
96 96
      */
97
-    public static function create(ClientId $clientId, ResourceOwnerId $resourceOwnerId, DataBag $parameters, DataBag $metadatas, array $scopes, ? \DateTimeImmutable $expiresAt, ? ResourceServerId $resourceServerId, ? DataTransporter $dataTransporter): CreateAccessTokenWithRefreshTokenCommand
97
+    public static function create(ClientId $clientId, ResourceOwnerId $resourceOwnerId, DataBag $parameters, DataBag $metadatas, array $scopes, ? \DateTimeImmutable $expiresAt, ? ResourceServerId $resourceServerId, ? DataTransporter $dataTransporter) : CreateAccessTokenWithRefreshTokenCommand
98 98
     {
99 99
         return new self($clientId, $resourceOwnerId, $parameters, $metadatas, $scopes, $expiresAt, $resourceServerId, $dataTransporter);
100 100
     }
Please login to merge, or discard this patch.
src/Component/Server/Command/ResourceServer/CreateResourceServerCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      *
43 43
      * @return CreateResourceServerCommand
44 44
      */
45
-    public static function create(DataBag $parameters, ? DataTransporter $dataTransporter): CreateResourceServerCommand
45
+    public static function create(DataBag $parameters, ? DataTransporter $dataTransporter) : CreateResourceServerCommand
46 46
     {
47 47
         return new self($parameters, $dataTransporter);
48 48
     }
Please login to merge, or discard this patch.
src/Component/Server/Command/Client/CreateClientCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      *
52 52
      * @return CreateClientCommand
53 53
      */
54
-    public static function create(? UserAccountId $userAccountId, DataBag $parameters, ? DataTransporter $dataTransporter): CreateClientCommand
54
+    public static function create(? UserAccountId $userAccountId, DataBag $parameters, ? DataTransporter $dataTransporter) : CreateClientCommand
55 55
     {
56 56
         return new self($userAccountId, $parameters, $dataTransporter);
57 57
     }
Please login to merge, or discard this patch.