@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | |
83 | 83 | /** |
84 | 84 | * @param string $path |
85 | - * @param array $sources |
|
85 | + * @param SourceInterface[] $sources |
|
86 | 86 | * @param array $mergedConfig |
87 | 87 | * @param ContainerBuilder $container |
88 | 88 | */ |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | /** |
101 | 101 | * @param array $bundleConfig |
102 | 102 | * @param string $path |
103 | - * @param array $sources |
|
103 | + * @param SourceInterface[] $sources |
|
104 | 104 | * @param ContainerBuilder $container |
105 | 105 | */ |
106 | 106 | private function prependSources(array $bundleConfig, string $path, array $sources, ContainerBuilder $container) |
@@ -1,6 +1,6 @@ |
||
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) |
@@ -19,7 +19,7 @@ |
||
19 | 19 | /** |
20 | 20 | * {@inheritdoc} |
21 | 21 | */ |
22 | - public function prepareRequest(ServerMetadata $server_metadata, OAuth2ClientInterface $client, RequestInterface &$request, array &$post_request) |
|
22 | + public function prepareRequest(ServerMetadata $server_metadata, OAuth2ClientInterface $client, RequestInterface & $request, array &$post_request) |
|
23 | 23 | { |
24 | 24 | } |
25 | 25 | } |
@@ -21,5 +21,5 @@ |
||
21 | 21 | * |
22 | 22 | * @return mixed |
23 | 23 | */ |
24 | - public function prepareRequest(ServerMetadata $server_metadata, OAuth2ClientInterface $client, RequestInterface &$request, array &$post_request); |
|
24 | + public function prepareRequest(ServerMetadata $server_metadata, OAuth2ClientInterface $client, RequestInterface & $request, array &$post_request); |
|
25 | 25 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | /** |
21 | 21 | * {@inheritdoc} |
22 | 22 | */ |
23 | - public function prepareRequest(ServerMetadata $server_metadata, OAuth2ClientInterface $client, RequestInterface &$request, array &$post_request) |
|
23 | + public function prepareRequest(ServerMetadata $server_metadata, OAuth2ClientInterface $client, RequestInterface & $request, array &$post_request) |
|
24 | 24 | { |
25 | 25 | Assertion::keyExists($client->getConfiguration(), 'client_secret'); |
26 | 26 | $this->checkClientTokenEndpointAuthenticationMethod($client); |
@@ -19,7 +19,7 @@ |
||
19 | 19 | /** |
20 | 20 | * {@inheritdoc} |
21 | 21 | */ |
22 | - public function prepareRequest(ServerMetadata $server_metadata, OAuth2ClientInterface $client, RequestInterface &$request, array &$post_request) |
|
22 | + public function prepareRequest(ServerMetadata $server_metadata, OAuth2ClientInterface $client, RequestInterface & $request, array &$post_request) |
|
23 | 23 | { |
24 | 24 | $this->checkClientTokenEndpointAuthenticationMethod($client); |
25 | 25 |
@@ -1,6 +1,6 @@ |
||
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) |
@@ -1,6 +1,6 @@ discard block |
||
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,13 +64,13 @@ discard block |
||
64 | 64 | private function callableForNextRule(int $index): \Closure |
65 | 65 | { |
66 | 66 | if (!isset($this->responseTypes[$index])) { |
67 | - return function (Authorization $authorization) { |
|
67 | + return function(Authorization $authorization) { |
|
68 | 68 | return $authorization; |
69 | 69 | }; |
70 | 70 | } |
71 | 71 | $responseType = $this->responseTypes[$index]; |
72 | 72 | |
73 | - return function (Authorization $authorization) use ($responseType, $index): Authorization { |
|
73 | + return function(Authorization $authorization) use ($responseType, $index): Authorization { |
|
74 | 74 | return $responseType->process($authorization, $this->callableForNextRule($index + 1)); |
75 | 75 | }; |
76 | 76 | } |
@@ -1,6 +1,6 @@ discard block |
||
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,13 +50,13 @@ discard block |
||
50 | 50 | private function callableForNextRule(int $index): \Closure |
51 | 51 | { |
52 | 52 | if (!isset($this->extensions[$index])) { |
53 | - return function (ServerRequestInterface $request, Authorization $authorization): Authorization { |
|
53 | + return function(ServerRequestInterface $request, Authorization $authorization): Authorization { |
|
54 | 54 | return $authorization; |
55 | 55 | }; |
56 | 56 | } |
57 | 57 | $extension = $this->extensions[$index]; |
58 | 58 | |
59 | - return function (ServerRequestInterface $request, Authorization $authorization) use ($extension, $index): Authorization { |
|
59 | + return function(ServerRequestInterface $request, Authorization $authorization) use ($extension, $index): Authorization { |
|
60 | 60 | return $extension->find($request, $authorization, $this->callableForNextRule($index + 1)); |
61 | 61 | }; |
62 | 62 | } |
@@ -1,6 +1,6 @@ discard block |
||
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) |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * |
39 | 39 | * @return string |
40 | 40 | */ |
41 | - abstract protected function getBrowserState(ServerRequestInterface $request, Authorization &$authorization): string; |
|
41 | + abstract protected function getBrowserState(ServerRequestInterface $request, Authorization & $authorization): string; |
|
42 | 42 | |
43 | 43 | /** |
44 | 44 | * @param ServerRequestInterface $request |