Completed
Push — develop ( c4148f...63805f )
by Wisoot
02:49
created
src/JwtGuard.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@
 block discarded – undo
183 183
      */
184 184
     protected function hasValidCredentials($user, $credentials)
185 185
     {
186
-        return ! is_null($user) && $this->provider->validateCredentials($user, $credentials);
186
+        return !is_null($user) && $this->provider->validateCredentials($user, $credentials);
187 187
     }
188 188
 
189 189
     /**
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
     /**
143 143
      * Determine if the user matches the credentials.
144 144
      *
145
-     * @param mixed $user
145
+     * @param AuthenticatableContract|null $user
146 146
      * @param array $credentials
147 147
      * @return bool
148 148
      */
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
     /**
326 326
      * getToken method
327 327
      *
328
-     * @return null|string
328
+     * @return string
329 329
      */
330 330
     public function getToken()
331 331
     {
Please login to merge, or discard this patch.
src/Claim.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         }
62 62
 
63 63
         if (empty($this->jti)) {
64
-            $this->jti = md5("{$this->sub}.{$this->iat}." . rand(1000, 1999));
64
+            $this->jti = md5("{$this->sub}.{$this->iat}.".rand(1000, 1999));
65 65
         }
66 66
     }
67 67
 
Please login to merge, or discard this patch.
src/Providers/JwtGuardServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     private function publishConfig()
43 43
     {
44
-        $configFile = __DIR__ . '/../config/jwt.php';
44
+        $configFile = __DIR__.'/../config/jwt.php';
45 45
 
46 46
         $this->publishes([
47 47
             $configFile => config_path('jwt.php')
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     private function publishMigration()
57 57
     {
58 58
         $this->publishes([
59
-            __DIR__ . '/../database/migrations/' => database_path('migrations')
59
+            __DIR__.'/../database/migrations/' => database_path('migrations')
60 60
         ], 'migrations');
61 61
     }
62 62
 
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
67 67
     {
68 68
         $this->app->bind(TokenManagerContract::class, TokenManager::class);
69 69
 
70
-        $this->app->rebinding('request', function ($app, $request) {
71
-            $request->setUserResolver(function ($guard = null) {
70
+        $this->app->rebinding('request', function($app, $request) {
71
+            $request->setUserResolver(function($guard = null) {
72 72
                 return auth()->guard($guard)->user();
73 73
             });
74 74
         });
Please login to merge, or discard this patch.
src/JwtService.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      * getEntityFromToken method
57 57
      *
58 58
      * @param string $token
59
-     * @return mixed
59
+     * @return Claim
60 60
      * @throws InaccessibleException
61 61
      * @throws MalformedException
62 62
      * @throws TokenExpiredException
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     /**
129 129
      * getValidClaimFromToken method
130 130
      *
131
-     * @param $token
131
+     * @param string $token
132 132
      * @return Claim
133 133
      * @throws MalformedException
134 134
      * @throws TokenExpiredException
Please login to merge, or discard this patch.
src/database/migrations/2014_10_12_200000_create_user_tokens_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function up()
30 30
     {
31
-        Schema::create($this->tableName, function (Blueprint $table) {
31
+        Schema::create($this->tableName, function(Blueprint $table) {
32 32
             $table->increments('id');
33 33
             $table->string('subject')->unsigned();
34 34
             $table->string('audience')->unsigned();
Please login to merge, or discard this patch.