@@ -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) |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | * |
| 28 | 28 | * @param DataTransporter|null $dataTransporter |
| 29 | 29 | */ |
| 30 | - protected function __construct(?DataTransporter $dataTransporter) |
|
| 30 | + protected function __construct(? DataTransporter $dataTransporter) |
|
| 31 | 31 | { |
| 32 | 32 | $this->dataTransporter = $dataTransporter; |
| 33 | 33 | } |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | /** |
| 36 | 36 | * @return null|DataTransporter |
| 37 | 37 | */ |
| 38 | - public function getDataTransporter(): ?DataTransporter |
|
| 38 | + public function getDataTransporter(): ? DataTransporter |
|
| 39 | 39 | { |
| 40 | 40 | return $this->dataTransporter; |
| 41 | 41 | } |
@@ -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) |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | * @param \DateTimeImmutable|null $expiresAt |
| 37 | 37 | * @param DataTransporter|null $dataTransporter |
| 38 | 38 | */ |
| 39 | - protected function __construct(UserAccountId $userAccountId, ?\DateTimeImmutable $expiresAt, ?DataTransporter $dataTransporter) |
|
| 39 | + protected function __construct(UserAccountId $userAccountId, ? \DateTimeImmutable $expiresAt, ? DataTransporter $dataTransporter) |
|
| 40 | 40 | { |
| 41 | 41 | $this->userAccountId = $userAccountId; |
| 42 | 42 | $this->expiresAt = $expiresAt; |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | * |
| 51 | 51 | * @return CreateInitialAccessTokenCommand |
| 52 | 52 | */ |
| 53 | - public static function create(UserAccountId $userAccountId, ?\DateTimeImmutable $expiresAt, ?DataTransporter $dataTransporter): CreateInitialAccessTokenCommand |
|
| 53 | + public static function create(UserAccountId $userAccountId, ? \DateTimeImmutable $expiresAt, ? DataTransporter $dataTransporter) : CreateInitialAccessTokenCommand |
|
| 54 | 54 | { |
| 55 | 55 | return new self($userAccountId, $expiresAt, $dataTransporter); |
| 56 | 56 | } |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | /** |
| 67 | 67 | * @return null|\DateTimeImmutable |
| 68 | 68 | */ |
| 69 | - public function getExpiresAt(): ?\DateTimeImmutable |
|
| 69 | + public function getExpiresAt(): ? \DateTimeImmutable |
|
| 70 | 70 | { |
| 71 | 71 | return $this->expiresAt; |
| 72 | 72 | } |
@@ -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) |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | * @param DataBag $parameters |
| 31 | 31 | * @param DataTransporter|null $dataTransporter |
| 32 | 32 | */ |
| 33 | - protected function __construct(DataBag $parameters, ?DataTransporter $dataTransporter) |
|
| 33 | + protected function __construct(DataBag $parameters, ? DataTransporter $dataTransporter) |
|
| 34 | 34 | { |
| 35 | 35 | $this->parameters = $parameters; |
| 36 | 36 | parent::__construct($dataTransporter); |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | * |
| 43 | 43 | * @return CreateResourceServerCommand |
| 44 | 44 | */ |
| 45 | - public static function create(DataBag $parameters, ?DataTransporter $dataTransporter): CreateResourceServerCommand |
|
| 45 | + public static function create(DataBag $parameters, ? DataTransporter $dataTransporter) : CreateResourceServerCommand |
|
| 46 | 46 | { |
| 47 | 47 | return new self($parameters, $dataTransporter); |
| 48 | 48 | } |
@@ -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) |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | */ |
| 85 | 85 | public function process(ServerRequestInterface $request, DelegateInterface $delegate) |
| 86 | 86 | { |
| 87 | - $this->middlewares[] = new Delegate(function (ServerRequestInterface $request) use ($delegate) { |
|
| 87 | + $this->middlewares[] = new Delegate(function(ServerRequestInterface $request) use ($delegate) { |
|
| 88 | 88 | return $delegate->process($request); |
| 89 | 89 | }); |
| 90 | 90 | |
@@ -121,12 +121,12 @@ discard block |
||
| 121 | 121 | if (isset($this->middlewares[$index])) { |
| 122 | 122 | $middleware = $this->middlewares[$index]; |
| 123 | 123 | |
| 124 | - return new Delegate(function (ServerRequestInterface $request) use ($middleware, $index) { |
|
| 124 | + return new Delegate(function(ServerRequestInterface $request) use ($middleware, $index) { |
|
| 125 | 125 | return $middleware->process($request, $this->resolve($index + 1)); |
| 126 | 126 | }); |
| 127 | 127 | } |
| 128 | 128 | |
| 129 | - return new Delegate(function () { |
|
| 129 | + return new Delegate(function() { |
|
| 130 | 130 | throw new \LogicException('Unresolved request: middleware exhausted with no result.'); |
| 131 | 131 | }); |
| 132 | 132 | } |
@@ -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) |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | /** |
| 30 | 30 | * {@inheritdoc} |
| 31 | 31 | */ |
| 32 | - public function createResponse(array $data, ResponseInterface &$response): OAuth2ResponseInterface |
|
| 32 | + public function createResponse(array $data, ResponseInterface & $response): OAuth2ResponseInterface |
|
| 33 | 33 | { |
| 34 | 34 | $schemes = $this->getSchemes(); |
| 35 | 35 | |
@@ -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 | /** |
| 33 | 33 | * {@inheritdoc} |
| 34 | 34 | */ |
| 35 | - public function createResponse(array $data, ResponseInterface &$response): OAuth2ResponseInterface |
|
| 35 | + public function createResponse(array $data, ResponseInterface & $response): OAuth2ResponseInterface |
|
| 36 | 36 | { |
| 37 | 37 | Assertion::keyExists($data, 'response_mode', 'The \'response_mode\' parameter is missing.'); |
| 38 | 38 | Assertion::keyExists($data, 'redirect_uri', 'The \'redirect_uri\' parameter is missing.'); |
@@ -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) |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | /** |
| 31 | 31 | * {@inheritdoc} |
| 32 | 32 | */ |
| 33 | - public function createResponse(array $data, ResponseInterface &$response): OAuth2ResponseInterface |
|
| 33 | + public function createResponse(array $data, ResponseInterface & $response): OAuth2ResponseInterface |
|
| 34 | 34 | { |
| 35 | 35 | return new OAuth2Error(405, $data, $response); |
| 36 | 36 | } |
@@ -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) |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | /** |
| 31 | 31 | * {@inheritdoc} |
| 32 | 32 | */ |
| 33 | - public function createResponse(array $data, ResponseInterface &$response): OAuth2ResponseInterface |
|
| 33 | + public function createResponse(array $data, ResponseInterface & $response): OAuth2ResponseInterface |
|
| 34 | 34 | { |
| 35 | 35 | return new OAuth2Error(501, $data, $response); |
| 36 | 36 | } |
@@ -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) |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | /** |
| 31 | 31 | * {@inheritdoc} |
| 32 | 32 | */ |
| 33 | - public function createResponse(array $data, ResponseInterface &$response): OAuth2ResponseInterface |
|
| 33 | + public function createResponse(array $data, ResponseInterface & $response): OAuth2ResponseInterface |
|
| 34 | 34 | { |
| 35 | 35 | return new OAuth2Error(400, $data, $response); |
| 36 | 36 | } |