@@ -54,7 +54,7 @@ |
||
| 54 | 54 | $this->assignRole($user, $role); |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | - }else{ |
|
| 57 | + } else{ |
|
| 58 | 58 | $this->assignRole($user, $roles); |
| 59 | 59 | } |
| 60 | 60 | |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | $role->givePermissionTo($permissionName); |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | - }else{ |
|
| 51 | + } else{ |
|
| 52 | 52 | $role->givePermissionTo($permissionNames); |
| 53 | 53 | } |
| 54 | 54 | |
@@ -118,7 +118,7 @@ |
||
| 118 | 118 | throw new UserNotPermittedException(); |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | - }else{ |
|
| 121 | + } else{ |
|
| 122 | 122 | return (App::make(\Dingo\Api\Http\Middleware\Auth::class))->handle($request, $next); |
| 123 | 123 | // another way to do handle this is by calling `$user = $this->jwtAuthAdapter->toUser($token);` |
| 124 | 124 | // and continuing the execution of this code till the last return, but to maintain consistency |