@@ -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 @@ |
||
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) |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | foreach (explode(';', $headerValue) as $headerPart) { |
172 | 172 | if (strtolower(substr($headerPart, 0, 4)) == 'for=') { |
173 | 173 | $for = explode(']', $headerPart); |
174 | - $headerValue = trim(substr(reset($for), 4), " \t\n\r\0\x0B" . '"[]'); |
|
174 | + $headerValue = trim(substr(reset($for), 4), " \t\n\r\0\x0B".'"[]'); |
|
175 | 175 | break; |
176 | 176 | } |
177 | 177 | } |
@@ -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) |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | /** |
24 | 24 | * {@inheritdoc} |
25 | 25 | */ |
26 | - public function findResourceServerId(ServerRequestInterface $request, &$resourceServerCredentials = null): ?ResourceServerId |
|
26 | + public function findResourceServerId(ServerRequestInterface $request, &$resourceServerCredentials = null): ? ResourceServerId |
|
27 | 27 | { |
28 | 28 | if ($request->hasHeader('X-Resource-Server-Id')) { |
29 | 29 | $id = $request->getHeader('X-Resource-Server-Id'); |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | return false; |
51 | 51 | } |
52 | 52 | $params = $request->getServerParams(); |
53 | - if(!array_key_exists('REMOTE_ADDR', $params)) { |
|
53 | + if (!array_key_exists('REMOTE_ADDR', $params)) { |
|
54 | 54 | return false; |
55 | 55 | } |
56 | 56 |
@@ -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) |
@@ -47,7 +47,7 @@ discard block |
||
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()]; |
@@ -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 | /** |
40 | 40 | * {@inheritdoc} |
41 | 41 | */ |
42 | - public function getBrowserState(ServerRequestInterface $request, Authorization &$authorization): string |
|
42 | + public function getBrowserState(ServerRequestInterface $request, Authorization & $authorization): string |
|
43 | 43 | { |
44 | 44 | if (array_key_exists($this->storageName, $_SESSION)) { |
45 | 45 | return $_SESSION[$this->storageName]; |
@@ -78,6 +78,6 @@ discard block |
||
78 | 78 | { |
79 | 79 | $url_parts = parse_url($redirectUri); |
80 | 80 | |
81 | - return sprintf('%s://%s%s', $url_parts['scheme'], $url_parts['host'], isset($url_parts['port']) ? ':' . $url_parts['port'] : ''); |
|
81 | + return sprintf('%s://%s%s', $url_parts['scheme'], $url_parts['host'], isset($url_parts['port']) ? ':'.$url_parts['port'] : ''); |
|
82 | 82 | } |
83 | 83 | } |
@@ -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 @@ |
||
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) |