Total Complexity | 6 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class DemoMode |
||
11 | { |
||
12 | /** @var array */ |
||
13 | protected $config; |
||
14 | |||
15 | public function __construct(Repository $config) |
||
16 | { |
||
17 | $this->config = $config->get('demo-mode'); |
||
18 | } |
||
19 | |||
20 | /** |
||
21 | * Handle an incoming request. |
||
22 | * |
||
23 | * @param \Illuminate\Http\Request $request |
||
24 | * @param \Closure $next |
||
25 | * |
||
26 | * @return mixed |
||
27 | */ |
||
28 | public function handle($request, Closure $next) |
||
41 | } |
||
42 | |||
43 | protected function protectedByDemoMode(Request $request): bool |
||
48 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.