| Conditions | 4 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 4.128 |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | 10 | public static function getProviderGuard($provider, Authenticatable $user) |
|
| 36 | { |
||
| 37 | 10 | foreach (config('auth.guards') as $guard => $content) { |
|
| 38 | 10 | if ($content['driver'] == 'passport' && $content['provider'] == $provider) { |
|
| 39 | 10 | return $guard; |
|
| 40 | } |
||
| 41 | } |
||
| 42 | |||
| 43 | throw MissingConfigException::guard($user); |
||
| 44 | } |
||
| 60 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths