| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | 1 | public function handle(Request $request, Closure $next) |
|
| 28 | { |
||
| 29 | 1 | $this->defaultApiProvider = config('auth.guards.api.provider'); |
|
| 30 | |||
| 31 | 1 | $params = $request->all(); |
|
| 32 | 1 | if (array_key_exists('provider', $params)) { |
|
| 33 | 1 | if (! is_null($params['provider'])) { |
|
| 34 | 1 | config(['auth.guards.api.provider' => $params['provider']]); |
|
| 35 | } |
||
| 36 | } |
||
| 37 | |||
| 38 | 1 | return $next($request); |
|
| 39 | } |
||
| 40 | |||
| 47 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.