@@ -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) |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | /** |
23 | 23 | * {@inheritdoc} |
24 | 24 | */ |
25 | - public function handle(DataBag $commandParameters, DataBag $validatedParameters, ?UserAccountId $userAccountId, callable $next): DataBag |
|
25 | + public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next) : DataBag |
|
26 | 26 | { |
27 | 27 | if ($commandParameters->has('default_scope')) { |
28 | 28 | Assertion::regex($commandParameters->get('default_scope'), '/^[\x20\x23-\x5B\x5D-\x7E]+$/', 'Invalid characters found in the \'default_scope\' parameter.'); |
@@ -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) |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * @param ScopeRepositoryInterface $scopeRepository |
39 | 39 | * @param null|ScopePolicyManager $scopePolicyManager |
40 | 40 | */ |
41 | - public function __construct(ScopeRepositoryInterface $scopeRepository, ?ScopePolicyManager $scopePolicyManager) |
|
41 | + public function __construct(ScopeRepositoryInterface $scopeRepository, ? ScopePolicyManager $scopePolicyManager) |
|
42 | 42 | { |
43 | 43 | $this->scopeRepository = $scopeRepository; |
44 | 44 | $this->scopePolicyManager = $scopePolicyManager; |
@@ -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) |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * @param ScopeRepositoryInterface $scopeRepository |
40 | 40 | * @param ScopePolicyManager|null $scopePolicyManager |
41 | 41 | */ |
42 | - public function __construct(ScopeRepositoryInterface $scopeRepository, ?ScopePolicyManager $scopePolicyManager) |
|
42 | + public function __construct(ScopeRepositoryInterface $scopeRepository, ? ScopePolicyManager $scopePolicyManager) |
|
43 | 43 | { |
44 | 44 | $this->scopeRepository = $scopeRepository; |
45 | 45 | $this->scopePolicyManager = $scopePolicyManager; |
@@ -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) |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | * @param null|ScopeRepositoryInterface $scopeRepository |
33 | 33 | * @param null|ScopePolicyManager $scopePolicyManager |
34 | 34 | */ |
35 | - public function __construct(?ScopeRepositoryInterface $scopeRepository, ?ScopePolicyManager $scopePolicyManager) |
|
35 | + public function __construct(? ScopeRepositoryInterface $scopeRepository, ? ScopePolicyManager $scopePolicyManager) |
|
36 | 36 | { |
37 | 37 | if (null !== $scopeRepository) { |
38 | 38 | $this->processors[] = new ScopeProcessor($scopeRepository, $scopePolicyManager); |
@@ -60,13 +60,13 @@ discard block |
||
60 | 60 | private function callableForNextRule(int $index): \Closure |
61 | 61 | { |
62 | 62 | if (!isset($this->processors[$index])) { |
63 | - return function (ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType): GrantTypeData { |
|
63 | + return function(ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType): GrantTypeData { |
|
64 | 64 | return $grantType->grant($request, $grantTypeData); |
65 | 65 | }; |
66 | 66 | } |
67 | 67 | $processor = $this->processors[$index]; |
68 | 68 | |
69 | - return function (ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType) use ($processor, $index): GrantTypeData { |
|
69 | + return function(ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType) use ($processor, $index): GrantTypeData { |
|
70 | 70 | return $processor($request, $grantTypeData, $grantType, $this->callableForNextRule($index + 1)); |
71 | 71 | }; |
72 | 72 | } |
@@ -44,6 +44,7 @@ |
||
44 | 44 | /** |
45 | 45 | * @param string $key |
46 | 46 | * @param mixed $value |
47 | + * @return void |
|
47 | 48 | */ |
48 | 49 | public function set($key, $value); |
49 | 50 |
@@ -16,11 +16,13 @@ discard block |
||
16 | 16 | /** |
17 | 17 | * If this method is called, requests using the https scheme without a valid certificates are allowed. |
18 | 18 | * We do not recommend you to call this method. |
19 | + * @return void |
|
19 | 20 | */ |
20 | 21 | public function allowUnsecuredRequests(); |
21 | 22 | |
22 | 23 | /** |
23 | 24 | * If this method is called, requests using the https scheme without a valid certificates are not allowed (default behaviour). |
25 | + * @return void |
|
24 | 26 | */ |
25 | 27 | public function disallowUnsecuredRequests(); |
26 | 28 | |
@@ -33,6 +35,7 @@ discard block |
||
33 | 35 | |
34 | 36 | /** |
35 | 37 | * @param string $proxy |
38 | + * @return void |
|
36 | 39 | */ |
37 | 40 | public function setProxy($proxy); |
38 | 41 | |
@@ -45,6 +48,7 @@ discard block |
||
45 | 48 | |
46 | 49 | /** |
47 | 50 | * Unset the proxy settings. |
51 | + * @return void |
|
48 | 52 | */ |
49 | 53 | public function unsetProxy(); |
50 | 54 |