Completed
Push — master ( 486b73...844878 )
by claudio
03:43
created
app/Http/Middleware/GetUserAndRefresh.php 1 patch
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,13 +22,14 @@
 block discarded – undo
22 22
     {
23 23
         $custom = $this->convertToArray($custom);
24 24
         $headers = $request->headers->all();
25
-        foreach($headers as $header)
26
-            Log::info('header: '.implode('-',$header));
25
+        foreach($headers as $header) {
26
+                    Log::info('header: '.implode('-',$header));
27
+        }
27 28
 
28 29
         if($token = $this->auth->setRequest($request)->getToken()) {
29
-        }else if ($this->auth->getUserModel()){
30
+        } else if ($this->auth->getUserModel()){
30 31
             $token = $this->auth->fromUser($this->auth->getUserModel(), $custom);
31
-        }else {
32
+        } else {
32 33
             return $this->respond('tymon.jwt.absent', 'token_not_provided', 401);
33 34
         }
34 35
 
Please login to merge, or discard this patch.