@@ -3,15 +3,15 @@ |
||
3 | 3 | namespace SMartins\PassportMultiauth\Http\Middleware; |
4 | 4 | |
5 | 5 | use Closure; |
6 | -use Illuminate\Support\Facades\App; |
|
7 | -use League\OAuth2\Server\ResourceServer; |
|
8 | 6 | use Illuminate\Auth\AuthenticationException; |
9 | 7 | use Illuminate\Auth\Middleware\Authenticate; |
10 | 8 | use Illuminate\Contracts\Auth\Factory as Auth; |
9 | +use Illuminate\Support\Facades\App; |
|
10 | +use League\OAuth2\Server\Exception\OAuthServerException; |
|
11 | +use League\OAuth2\Server\ResourceServer; |
|
12 | +use SMartins\PassportMultiauth\Guards\GuardChecker; |
|
11 | 13 | use SMartins\PassportMultiauth\PassportMultiauth; |
12 | 14 | use SMartins\PassportMultiauth\ProviderRepository; |
13 | -use SMartins\PassportMultiauth\Guards\GuardChecker; |
|
14 | -use League\OAuth2\Server\Exception\OAuthServerException; |
|
15 | 15 | use Symfony\Bridge\PsrHttpMessage\Factory\DiactorosFactory; |
16 | 16 | |
17 | 17 | class MultiAuthenticate extends Authenticate |
@@ -38,7 +38,7 @@ |
||
38 | 38 | * |
39 | 39 | * @todo Move to class specialized in check auth configs. |
40 | 40 | * @param \Illuminate\Contracts\Auth\Authenticatable $user |
41 | - * @return string|null |
|
41 | + * @return string |
|
42 | 42 | */ |
43 | 43 | public static function getUserProvider(Authenticatable $user) |
44 | 44 | { |
@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace SMartins\PassportMultiauth; |
4 | 4 | |
5 | -use Mockery; |
|
6 | -use Laravel\Passport\Token; |
|
7 | 5 | use Illuminate\Contracts\Auth\Authenticatable; |
6 | +use Laravel\Passport\Token; |
|
7 | +use Mockery; |
|
8 | 8 | |
9 | 9 | class PassportMultiauth |
10 | 10 | { |