@@ -16,11 +16,9 @@ |
||
16 | 16 | use Illuminate\Http\Response; |
17 | 17 | use Illuminate\Support\Arr; |
18 | 18 | use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; |
19 | -use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; |
|
20 | 19 | use Symfony\Component\HttpKernel\Exception\UnprocessableEntityHttpException; |
21 | 20 | use Tymon\JWTAuth\Exceptions\JWTException; |
22 | 21 | use Tymon\JWTAuth\Exceptions\TokenExpiredException; |
23 | -use Tymon\JWTAuth\Exceptions\TokenInvalidException; |
|
24 | 22 | use Tymon\JWTAuth\Providers\JWT\JWTInterface; |
25 | 23 | |
26 | 24 | /** |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | * For the full copyright and license information, please view the LICENSE |
5 | 5 | * file that was distributed with this source code. |
6 | 6 | */ |
7 | -declare(strict_types=1); |
|
7 | +declare(strict_types = 1); |
|
8 | 8 | |
9 | 9 | namespace App\Http\Middleware; |
10 | 10 | |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | |
123 | 123 | $user = User::where('id', $id)->where('password', $password)->first(); |
124 | 124 | |
125 | - if (! $user) { |
|
125 | + if (!$user) { |
|
126 | 126 | throw new UnprocessableEntityHttpException('Invalid user credentials.'); |
127 | 127 | } |
128 | 128 |