Completed
Push — master ( 1fcc0d...8b279a )
by John
21:49
created
src/Firewall/JwtAuthenticationListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /*
3 3
  * This file is part of the KleijnWeb\JwtBundle package.
4 4
  *
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     {
74 74
         $tokenString = $request->headers->get($this->header);
75 75
 
76
-        if ($this->header == self::HEADER_AUTH && 0 === strpos((string)$tokenString, 'Bearer ')) {
76
+        if ($this->header == self::HEADER_AUTH && 0 === strpos((string) $tokenString, 'Bearer ')) {
77 77
             $tokenString = substr($tokenString, 7);
78 78
         }
79 79
 
Please login to merge, or discard this patch.
tests/unit/Firewall/JwtAuthenticationListenerTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         $mock = $this->authenticationManagerMock;
62 62
         $mock->expects($this->once())
63 63
             ->method('authenticate')
64
-            ->with($this->callback(function (JwtAuthenticationToken $token) use ($tokenString) {
64
+            ->with($this->callback(function(JwtAuthenticationToken $token) use ($tokenString) {
65 65
                 return $token->getCredentials() === $tokenString;
66 66
             }));
67 67
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         $mock = $this->authenticationManagerMock;
83 83
         $mock->expects($this->once())
84 84
             ->method('authenticate')
85
-            ->with($this->callback(function (JwtAuthenticationToken $token) use ($tokenString) {
85
+            ->with($this->callback(function(JwtAuthenticationToken $token) use ($tokenString) {
86 86
                 return $token->getCredentials() === $tokenString;
87 87
             }));
88 88
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         $mock = $this->authenticationManagerMock;
104 104
         $mock->expects($this->once())
105 105
             ->method('authenticate')
106
-            ->with($this->callback(function (JwtAuthenticationToken $token) use ($tokenString) {
106
+            ->with($this->callback(function(JwtAuthenticationToken $token) use ($tokenString) {
107 107
                 return $token->getCredentials() === $tokenString;
108 108
             }));
109 109
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
         $mock = $this->authenticationManagerMock;
144 144
         $mock->expects($this->once())
145 145
             ->method('authenticate')
146
-            ->willReturnCallback(function () use ($authenticatedToken) {
146
+            ->willReturnCallback(function() use ($authenticatedToken) {
147 147
                 return $authenticatedToken;
148 148
             });
149 149
 
Please login to merge, or discard this patch.