Failed Conditions
Push — master ( 9635a1...82855d )
by Florent
14:04
created
src/Component/Server/Endpoint/Token/GrantTypeData.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)
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      *
61 61
      * @param Client|null $client
62 62
      */
63
-    private function __construct(?Client $client)
63
+    private function __construct(? Client $client)
64 64
     {
65 65
         $this->parameters = new DataBag();
66 66
         $this->metadatas = new DataBag();
@@ -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
     }
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
     /**
182 182
      * @return Client|null
183 183
      */
184
-    public function getClient(): ?Client
184
+    public function getClient(): ? Client
185 185
     {
186 186
         return $this->client;
187 187
     }
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
     /**
311 311
      * @return string[]|null
312 312
      */
313
-    public function getAvailableScopes(): ?array
313
+    public function getAvailableScopes(): ? array
314 314
     {
315 315
         return $this->availableScopes;
316 316
     }
Please login to merge, or discard this patch.
src/Component/Server/Endpoint/Token/TokenEndpointExtensionManager.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)
@@ -54,13 +54,13 @@  discard block
 block discarded – undo
54 54
     private function callableForNextExtension($index)
55 55
     {
56 56
         if (!array_key_exists($index, $this->extensions)) {
57
-            return function (Client $client, ResourceOwnerInterface $resourceOwner, AccessToken $accessToken): array {
57
+            return function(Client $client, ResourceOwnerInterface $resourceOwner, AccessToken $accessToken): array {
58 58
                 return $accessToken->getResponseData();
59 59
             };
60 60
         }
61 61
         $extension = $this->extensions[$index];
62 62
 
63
-        return function (Client $client, ResourceOwnerInterface $resourceOwner, AccessToken $accessToken) use ($extension, $index): array {
63
+        return function(Client $client, ResourceOwnerInterface $resourceOwner, AccessToken $accessToken) use ($extension, $index): array {
64 64
             return $extension->process($client, $resourceOwner, $accessToken, $this->callableForNextExtension($index + 1));
65 65
         };
66 66
     }
Please login to merge, or discard this patch.
src/Component/Server/Endpoint/Token/Extension/OpenIdConnectExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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)
Please login to merge, or discard this patch.
Server/Endpoint/Token/Extension/TokenEndpointExtensionInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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)
Please login to merge, or discard this patch.
src/Component/Server/Endpoint/Token/TokenEndpoint.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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)
Please login to merge, or discard this patch.
src/Component/Server/Endpoint/Token/Processor/TokenTypeProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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)
Please login to merge, or discard this patch.
src/Component/Server/Endpoint/Token/Processor/ProcessorManager.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)
@@ -56,13 +56,13 @@  discard block
 block discarded – undo
56 56
     private function callableForNextRule(int $index): \Closure
57 57
     {
58 58
         if (!isset($this->processors[$index])) {
59
-            return function (ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType): GrantTypeData {
59
+            return function(ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType): GrantTypeData {
60 60
                 return $grantType->grant($request, $grantTypeData);
61 61
             };
62 62
         }
63 63
         $processor = $this->processors[$index];
64 64
 
65
-        return function (ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType) use ($processor, $index): GrantTypeData {
65
+        return function(ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType) use ($processor, $index): GrantTypeData {
66 66
             return $processor($request, $grantTypeData, $grantType, $this->callableForNextRule($index + 1));
67 67
         };
68 68
     }
Please login to merge, or discard this patch.
src/Component/Server/Endpoint/Token/Processor/ScopeProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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)
Please login to merge, or discard this patch.
src/Component/Server/Endpoint/IssuerDiscovery/IssuerDiscoveryEndpoint.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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)
Please login to merge, or discard this patch.