Failed Conditions
Pull Request — master (#18)
by Florent
04:44
created
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/Tests/Stub/ResourceServerRepository.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)
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     /**
48 48
      * {@inheritdoc}
49 49
      */
50
-    public function find(ResourceServerId $resourceServerId): ?ResourceServerInterface
50
+    public function find(ResourceServerId $resourceServerId): ? ResourceServerInterface
51 51
     {
52 52
         if (array_key_exists($resourceServerId->getValue(), $this->resourceServers)) {
53 53
             return $this->resourceServers[$resourceServerId->getValue()];
Please login to merge, or discard this patch.
src/Component/Server/Tests/Stub/ClientRepository.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)
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     /**
138 138
      * {@inheritdoc}
139 139
      */
140
-    public function find(ClientId $clientId): ?Client
140
+    public function find(ClientId $clientId): ? Client
141 141
     {
142 142
         $client = null;
143 143
         $events = $this->eventStore->getEvents($clientId);
Please login to merge, or discard this patch.
src/Component/Server/Tests/Stub/InitialAccessTokenRepository.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)
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     /**
91 91
      * {@inheritdoc}
92 92
      */
93
-    public function find(InitialAccessTokenId $initialAccessTokenId): ?InitialAccessToken
93
+    public function find(InitialAccessTokenId $initialAccessTokenId): ? InitialAccessToken
94 94
     {
95 95
         $initialAccessToken = null;
96 96
         $events = $this->eventStore->getEvents($initialAccessTokenId);
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      * @param UserAccountId|null      $userAccountId
110 110
      * @param \DateTimeImmutable|null $expiresAt
111 111
      */
112
-    private function createAndSaveInitialAccessToken(InitialAccessTokenId $initialAccessTokenId, ?UserAccountId $userAccountId, ?\DateTimeImmutable $expiresAt)
112
+    private function createAndSaveInitialAccessToken(InitialAccessTokenId $initialAccessTokenId, ? UserAccountId $userAccountId, ? \DateTimeImmutable $expiresAt)
113 113
     {
114 114
         $initialAccessToken = InitialAccessToken::createEmpty();
115 115
         $initialAccessToken = $initialAccessToken->create(
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      * @param UserAccountId|null      $userAccountId
131 131
      * @param \DateTimeImmutable|null $expiresAt
132 132
      */
133
-    private function createRevokeAndSaveInitialAccessToken(InitialAccessTokenId $initialAccessTokenId, ?UserAccountId $userAccountId, ?\DateTimeImmutable $expiresAt)
133
+    private function createRevokeAndSaveInitialAccessToken(InitialAccessTokenId $initialAccessTokenId, ? UserAccountId $userAccountId, ? \DateTimeImmutable $expiresAt)
134 134
     {
135 135
         $initialAccessToken = InitialAccessToken::createEmpty();
136 136
         $initialAccessToken = $initialAccessToken->create(
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.
src/Component/Server/Command/RefreshToken/CreateRefreshTokenCommand.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)
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      * @param \DateTimeImmutable|null $expiresAt
63 63
      * @param DataTransporter|null    $dataTransporter
64 64
      */
65
-    protected function __construct(ResourceOwnerId $userAccountId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, ?\DateTimeImmutable $expiresAt, ?DataTransporter $dataTransporter)
65
+    protected function __construct(ResourceOwnerId $userAccountId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, ? \DateTimeImmutable $expiresAt, ? DataTransporter $dataTransporter)
66 66
     {
67 67
         parent::__construct($dataTransporter);
68 68
         $this->expiresAt = $expiresAt;
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      *
85 85
      * @return CreateRefreshTokenCommand
86 86
      */
87
-    public static function create(ResourceOwnerId $userAccountId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, ?\DateTimeImmutable $expiresAt, ?DataTransporter $dataTransporter): CreateRefreshTokenCommand
87
+    public static function create(ResourceOwnerId $userAccountId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, ? \DateTimeImmutable $expiresAt, ? DataTransporter $dataTransporter) : CreateRefreshTokenCommand
88 88
     {
89 89
         return new self($userAccountId, $clientId, $parameters, $metadatas, $scopes, $expiresAt, $dataTransporter);
90 90
     }
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     /**
93 93
      * @return \DateTimeImmutable|null
94 94
      */
95
-    public function getExpiresAt(): ?\DateTimeImmutable
95
+    public function getExpiresAt(): ? \DateTimeImmutable
96 96
     {
97 97
         return $this->expiresAt;
98 98
     }
Please login to merge, or discard this patch.
Command/AccessToken/CreateAccessTokenWithRefreshTokenCommandHandler.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)
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      * @param AccessTokenRepositoryInterface       $accessTokenRepository
35 35
      * @param RefreshTokenRepositoryInterface|null $refreshTokenRepository
36 36
      */
37
-    public function __construct(AccessTokenRepositoryInterface $accessTokenRepository, ?RefreshTokenRepositoryInterface $refreshTokenRepository)
37
+    public function __construct(AccessTokenRepositoryInterface $accessTokenRepository, ? RefreshTokenRepositoryInterface $refreshTokenRepository)
38 38
     {
39 39
         $this->accessTokenRepository = $accessTokenRepository;
40 40
         $this->refreshTokenRepository = $refreshTokenRepository;
Please login to merge, or discard this patch.