@@ -23,9 +23,9 @@ |
||
23 | 23 | $custom = $this->convertToArray($custom); |
24 | 24 | Debug::info('headers: '.implode('-',$request->all())); |
25 | 25 | if($token = $this->auth->setRequest($request)->getToken()) { |
26 | - }else if ($this->auth->getUserModel()){ |
|
26 | + } else if ($this->auth->getUserModel()){ |
|
27 | 27 | $token = $this->auth->fromUser($this->auth->getUserModel(), $custom); |
28 | - }else { |
|
28 | + } else { |
|
29 | 29 | return $this->respond('tymon.jwt.absent', 'token_not_provided', 401); |
30 | 30 | } |
31 | 31 |
@@ -64,8 +64,9 @@ |
||
64 | 64 | $str = explode(';', $str); |
65 | 65 | foreach($str as $value) { |
66 | 66 | $tmp = explode('-', $value); |
67 | - if(count($tmp) != 2) |
|
68 | - return []; |
|
67 | + if(count($tmp) != 2) { |
|
68 | + return []; |
|
69 | + } |
|
69 | 70 | $ret[$tmp[0]] = $tmp[1]; |
70 | 71 | } |
71 | 72 | return $ret; |