Passed
Pull Request — master (#668)
by butschster
08:23
created
src/Broadcasting/src/Middleware/AuthorizationMiddleware.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,11 +32,13 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.