Passed
Push — master ( c0f6da...b424db )
by Jelmer
04:57
created
src/Session/LoadJwtSessionMiddleware.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     public function process(ServerRequestInterface $request, DelegateInterface $delegate) : ResponseInterface
93 93
     {
94 94
         $token            = $this->parseToken($request);
95
-        $sessionContainer = LazySession::fromContainerBuildingCallback(function () use ($token) : JwtSessionInterface {
95
+        $sessionContainer = LazySession::fromContainerBuildingCallback(function() use ($token) : JwtSessionInterface {
96 96
             return $this->extractSessionContainer($token);
97 97
         });
98 98
 
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
         $cookies    = $request->getCookieParams();
108 108
         $cookieName = $this->defaultCookie->getName();
109 109
 
110
-        if (! isset($cookies[$cookieName])) {
110
+        if (!isset($cookies[$cookieName])) {
111 111
             return null;
112 112
         }
113 113
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             return null;
118 118
         }
119 119
 
120
-        if (! $token->validate(new ValidationData())) {
120
+        if (!$token->validate(new ValidationData())) {
121 121
             return null;
122 122
         }
123 123
 
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     public function extractSessionContainer(Token $token = null) : JwtSessionInterface
128 128
     {
129 129
         try {
130
-            if (null === $token || ! $token->verify($this->signer, $this->verificationKey)) {
130
+            if (null === $token || !$token->verify($this->signer, $this->verificationKey)) {
131 131
                 return DefaultSessionData::newEmptySession();
132 132
             }
133 133
 
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
             return FigResponseCookies::set($response, $this->getExpirationCookie());
152 152
         }
153 153
 
154
-        if ($sessionContainerChanged || ($this->shouldTokenBeRefreshed($token) && ! $sessionContainer->isEmpty())) {
154
+        if ($sessionContainerChanged || ($this->shouldTokenBeRefreshed($token) && !$sessionContainer->isEmpty())) {
155 155
             return FigResponseCookies::set($response, $this->getTokenCookie($sessionContainer));
156 156
         }
157 157
 
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
             return false;
168 168
         }
169 169
 
170
-        if (! $token->hasClaim(self::ISSUED_AT_CLAIM)) {
170
+        if (!$token->hasClaim(self::ISSUED_AT_CLAIM)) {
171 171
             return false;
172 172
         }
173 173
 
Please login to merge, or discard this patch.