@@ -25,6 +25,6 @@ |
||
| 25 | 25 | protected function schedule(Schedule $schedule) |
| 26 | 26 | { |
| 27 | 27 | $schedule->command('inspire') |
| 28 | - ->hourly(); |
|
| 28 | + ->hourly(); |
|
| 29 | 29 | } |
| 30 | 30 | } |
@@ -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; |
@@ -22,13 +22,14 @@ |
||
| 22 | 22 | { |
| 23 | 23 | $custom = $this->convertToArray($custom); |
| 24 | 24 | $headers = $request->headers->all(); |
| 25 | - foreach($headers as $key=>$header) |
|
| 26 | - Log::info($key.': '.implode('-',$header)); |
|
| 25 | + foreach($headers as $key=>$header) { |
|
| 26 | + Log::info($key.': '.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 | |