@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | BroadcastInterface $broadcast, |
| 23 | 23 | ResponseFactoryInterface $responseFactory, |
| 24 | 24 | ?string $authorizationPath = null |
| 25 | - ) { |
|
| 25 | + ){ |
|
| 26 | 26 | $this->responseFactory = $responseFactory; |
| 27 | 27 | $this->broadcast = $broadcast; |
| 28 | 28 | $this->authorizationPath = $authorizationPath; |
@@ -32,11 +32,11 @@ discard block |
||
| 32 | 32 | ServerRequestInterface $request, |
| 33 | 33 | RequestHandlerInterface $handler |
| 34 | 34 | ): ResponseInterface { |
| 35 | - if ($request->getUri()->getPath() !== $this->authorizationPath) { |
|
| 35 | + if ($request->getUri()->getPath() !== $this->authorizationPath){ |
|
| 36 | 36 | return $handler->handle($request); |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | - if ($this->broadcast instanceof GuardInterface) { |
|
| 39 | + if ($this->broadcast instanceof GuardInterface){ |
|
| 40 | 40 | return $this->broadcast->authorize($request); |
| 41 | 41 | } |
| 42 | 42 | |
@@ -32,11 +32,13 @@ |
||
| 32 | 32 | ServerRequestInterface $request, |
| 33 | 33 | RequestHandlerInterface $handler |
| 34 | 34 | ): ResponseInterface { |
| 35 | - if ($request->getUri()->getPath() !== $this->authorizationPath) { |
|
| 35 | + if ($request->getUri()->getPath() !== $this->authorizationPath) |
|
| 36 | + { |
|
| 36 | 37 | return $handler->handle($request); |
| 37 | 38 | } |
| 38 | 39 | |
| 39 | - if ($this->broadcast instanceof GuardInterface) { |
|
| 40 | + if ($this->broadcast instanceof GuardInterface) |
|
| 41 | + { |
|
| 40 | 42 | return $this->broadcast->authorize($request); |
| 41 | 43 | } |
| 42 | 44 | |