Conditions | 4 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function handle($request, Closure $next) |
||
29 | { |
||
30 | if (!$this->config['enabled']) { |
||
31 | return $next($request); |
||
32 | } |
||
33 | |||
34 | if ($this->protectedByDemoMode($request)) { |
||
35 | if (!app(DemoGuard::class)->hasDemoAccess($request)) { |
||
36 | return new RedirectResponse($this->config['redirect_unauthorized_users_to_url']); |
||
37 | } |
||
38 | } |
||
39 | |||
40 | return $next($request); |
||
41 | } |
||
48 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.