Total Complexity | 2 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class XHProfMiddleware |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * @param $request |
||
13 | * @param Closure $next |
||
14 | * @return mixed |
||
15 | */ |
||
16 | public function handle($request, Closure $next) |
||
17 | { |
||
18 | app(XHProfService::class)->enable(); |
||
19 | return $next($request); |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * @param $request |
||
24 | * @param $response |
||
25 | */ |
||
26 | public function terminate($request, $response) |
||
29 | } |
||
30 | |||
32 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.