Test Failed
Push — feature-laravel-5.4 ( bce2b2...556e60 )
by Kirill
03:14
created
app/Http/Middleware/ApiAuthenticate.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -16,11 +16,9 @@
 block discarded – undo
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
 /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.