Failed Conditions
Pull Request — master (#22)
by Florent
05:04 queued 01:08
created
src/Component/Server/Model/AccessToken/AccessTokenRepositoryInterface.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)
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      *
34 34
      * @return AccessToken
35 35
      */
36
-    public function create(ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, ?RefreshTokenId $refreshTokenId, ?ResourceServerId $resourceServerId, ?\DateTimeImmutable $expiresAt): AccessToken;
36
+    public function create(ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, ? RefreshTokenId $refreshTokenId, ? ResourceServerId $resourceServerId, ? \DateTimeImmutable $expiresAt) : AccessToken;
37 37
 
38 38
     /**
39 39
      * @param AccessToken $token
Please login to merge, or discard this patch.
src/Component/Server/Model/InitialAccessToken/InitialAccessToken.php 1 patch
Spacing   +4 added lines, -4 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)
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      *
61 61
      * @return InitialAccessToken
62 62
      */
63
-    public function create(InitialAccessTokenId $initialAccessTokenId, ?UserAccountId $userAccountId, ?\DateTimeImmutable $expiresAt): InitialAccessToken
63
+    public function create(InitialAccessTokenId $initialAccessTokenId, ? UserAccountId $userAccountId, ? \DateTimeImmutable $expiresAt) : InitialAccessToken
64 64
     {
65 65
         $clone = clone $this;
66 66
         $clone->initialAccessTokenId = $initialAccessTokenId;
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     /**
87 87
      * @return UserAccountId|null
88 88
      */
89
-    public function getUserAccountId(): ?UserAccountId
89
+    public function getUserAccountId(): ? UserAccountId
90 90
     {
91 91
         return $this->userAccountId;
92 92
     }
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     /**
95 95
      * @return \DateTimeImmutable|null
96 96
      */
97
-    public function getExpiresAt(): ?\DateTimeImmutable
97
+    public function getExpiresAt(): ? \DateTimeImmutable
98 98
     {
99 99
         return $this->expiresAt;
100 100
     }
Please login to merge, or discard this patch.
Server/Model/InitialAccessToken/InitialAccessTokenRepositoryInterface.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)
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      *
24 24
      * @return InitialAccessToken
25 25
      */
26
-    public function create(?UserAccountId $userAccountId, ?\DateTimeImmutable $expiresAt): InitialAccessToken;
26
+    public function create(? UserAccountId $userAccountId, ? \DateTimeImmutable $expiresAt) : InitialAccessToken;
27 27
 
28 28
     /**
29 29
      * @param InitialAccessToken $initialAccessToken
@@ -38,5 +38,5 @@  discard block
 block discarded – undo
38 38
      *
39 39
      * @return InitialAccessToken|null Return the initial access token or null if the argument is not a valid initial access token
40 40
      */
41
-    public function find(InitialAccessTokenId $initialAccessTokenId): ?InitialAccessToken;
41
+    public function find(InitialAccessTokenId $initialAccessTokenId): ? InitialAccessToken;
42 42
 }
Please login to merge, or discard this patch.
src/Component/Server/Model/IdToken/IdTokenLoader.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)
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      *
78 78
      * @return IdToken|null
79 79
      */
80
-    public function load(IdTokenId $idTokenId): ?IdToken
80
+    public function load(IdTokenId $idTokenId): ? IdToken
81 81
     {
82 82
         try {
83 83
             $jwt = $this->jwtLoader->load($idTokenId->getValue());
Please login to merge, or discard this patch.
Component/Server/Model/ResourceServer/ResourceServerRepositoryInterface.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)
@@ -20,5 +20,5 @@  discard block
 block discarded – undo
20 20
      *
21 21
      * @return ResourceServerInterface|null Return the resource server or null if the argument is not a valid resource server ID
22 22
      */
23
-    public function find(ResourceServerId $resourceServer): ?ResourceServerInterface;
23
+    public function find(ResourceServerId $resourceServer): ? ResourceServerInterface;
24 24
 }
Please login to merge, or discard this patch.
PreConfiguredAuthorizationRepositoryInterface.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)
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      *
28 28
      * @return PreConfiguredAuthorization
29 29
      */
30
-    public function create(UserAccountId $userAccountId, ClientId $clientId, array $scopes, ?ResourceServerId $resourceServerId): PreConfiguredAuthorization;
30
+    public function create(UserAccountId $userAccountId, ClientId $clientId, array $scopes, ? ResourceServerId $resourceServerId) : PreConfiguredAuthorization;
31 31
 
32 32
     /**
33 33
      * @param PreConfiguredAuthorization $preConfiguredAuthorization
@@ -42,5 +42,5 @@  discard block
 block discarded – undo
42 42
      *
43 43
      * @return PreConfiguredAuthorization|null
44 44
      */
45
-    public function find(UserAccountId $userAccountId, ClientId $clientId, array $scopes, ?ResourceServerId $resourceServerId): ?PreConfiguredAuthorization;
45
+    public function find(UserAccountId $userAccountId, ClientId $clientId, array $scopes, ? ResourceServerId $resourceServerId) : ? PreConfiguredAuthorization;
46 46
 }
Please login to merge, or discard this patch.
src/Component/Server/Command/AuthCode/CreateAuthCodeCommand.php 1 patch
Spacing   +5 added lines, -5 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)
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      * @param ResourceServerId|null   $resourceServerId
88 88
      * @param DataTransporter|null    $dataTransporter
89 89
      */
90
-    protected function __construct(ClientId $clientId, UserAccountId $userAccountId, array $queryParameters, string $redirectUri, DataBag $parameters, DataBag $metadatas, array $scopes, bool $withRefreshToken, ?\DateTimeImmutable $expiresAt, ?ResourceServerId $resourceServerId, ?DataTransporter $dataTransporter)
90
+    protected function __construct(ClientId $clientId, UserAccountId $userAccountId, array $queryParameters, string $redirectUri, DataBag $parameters, DataBag $metadatas, array $scopes, bool $withRefreshToken, ? \DateTimeImmutable $expiresAt, ? ResourceServerId $resourceServerId, ? DataTransporter $dataTransporter)
91 91
     {
92 92
         $this->clientId = $clientId;
93 93
         $this->userAccountId = $userAccountId;
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      *
118 118
      * @return CreateAuthCodeCommand
119 119
      */
120
-    public static function create(ClientId $clientId, UserAccountId $userAccountId, array $queryParameters, string $redirectUri, DataBag $parameters, DataBag $metadatas, array $scopes, bool $withRefreshToken, ?\DateTimeImmutable $expiresAt, ?ResourceServerId $resourceServerId, ?DataTransporter $dataTransporter): CreateAuthCodeCommand
120
+    public static function create(ClientId $clientId, UserAccountId $userAccountId, array $queryParameters, string $redirectUri, DataBag $parameters, DataBag $metadatas, array $scopes, bool $withRefreshToken, ? \DateTimeImmutable $expiresAt, ? ResourceServerId $resourceServerId, ? DataTransporter $dataTransporter) : CreateAuthCodeCommand
121 121
     {
122 122
         return new self($clientId, $userAccountId, $queryParameters, $redirectUri, $parameters, $metadatas, $scopes, $withRefreshToken, $expiresAt, $resourceServerId, $dataTransporter);
123 123
     }
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     /**
158 158
      * @return \DateTimeImmutable|null
159 159
      */
160
-    public function getExpiresAt(): ?\DateTimeImmutable
160
+    public function getExpiresAt(): ? \DateTimeImmutable
161 161
     {
162 162
         return $this->expiresAt;
163 163
     }
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
     /**
198 198
      * @return null|ResourceServerId
199 199
      */
200
-    public function getResourcesServerId(): ?ResourceServerId
200
+    public function getResourcesServerId(): ? ResourceServerId
201 201
     {
202 202
         return $this->resourceServerId;
203 203
     }
Please login to merge, or discard this patch.
src/Component/Server/Command/Client/CreateClientCommand.php 1 patch
Spacing   +4 added lines, -4 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)
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      * @param DataBag              $parameters
38 38
      * @param DataTransporter|null $dataTransporter
39 39
      */
40
-    protected function __construct(?UserAccountId $userAccountId, DataBag $parameters, ?DataTransporter $dataTransporter)
40
+    protected function __construct(? UserAccountId $userAccountId, DataBag $parameters, ? DataTransporter $dataTransporter)
41 41
     {
42 42
         $this->parameters = $parameters;
43 43
         $this->userAccountId = $userAccountId;
@@ -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
     }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     /**
68 68
      * @return UserAccountId|null
69 69
      */
70
-    public function getUserAccountId(): ?UserAccountId
70
+    public function getUserAccountId(): ? UserAccountId
71 71
     {
72 72
         return $this->userAccountId;
73 73
     }
Please login to merge, or discard this patch.
PreConfigureAuthorization/CreatePreConfiguredAuthorizationCommand.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)
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      * @param array                $scopes
44 44
      * @param DataTransporter|null $dataTransporter
45 45
      */
46
-    protected function __construct(ClientId $clientId, UserAccountId $userAccountId, array $scopes, ?DataTransporter $dataTransporter)
46
+    protected function __construct(ClientId $clientId, UserAccountId $userAccountId, array $scopes, ? DataTransporter $dataTransporter)
47 47
     {
48 48
         parent::__construct($dataTransporter);
49 49
         $this->clientId = $clientId;
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      *
59 59
      * @return CreatePreConfiguredAuthorizationCommand
60 60
      */
61
-    public static function create(ClientId $clientId, UserAccountId $userAccountId, array $scopes, ?DataTransporter $dataTransporter): CreatePreConfiguredAuthorizationCommand
61
+    public static function create(ClientId $clientId, UserAccountId $userAccountId, array $scopes, ? DataTransporter $dataTransporter) : CreatePreConfiguredAuthorizationCommand
62 62
     {
63 63
         return new self($clientId, $userAccountId, $scopes, $dataTransporter);
64 64
     }
Please login to merge, or discard this patch.