| 1 | <?php |
||||
| 2 | |||||
| 3 | namespace Bavix\XHProf\Middleware; |
||||
| 4 | |||||
| 5 | use Bavix\XHProf\Services\XHProfService; |
||||
| 6 | use Closure; |
||||
| 7 | |||||
| 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) |
||||
|
0 ignored issues
–
show
The parameter
$request is not used and could be removed.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for parameters that have been defined for a function or method, but which are not used in the method body. Loading history...
|
|||||
| 27 | { |
||||
| 28 | app(XHProfService::class)->disable(); |
||||
| 29 | } |
||||
| 30 | |||||
| 31 | } |
||||
| 32 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.