| Conditions | 4 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | 11 | public static function getProviderGuard($provider, Authenticatable $user) |
|
| 37 | { |
||
| 38 | 11 | foreach (config('auth.guards') as $guard => $content) { |
|
| 39 | 11 | if ($content['driver'] == 'passport' && $content['provider'] == $provider) { |
|
| 40 | 11 | return $guard; |
|
| 41 | } |
||
| 42 | } |
||
| 43 | |||
| 44 | 1 | throw MissingConfigException::guard($user); |
|
| 45 | } |
||
| 61 |