| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function handle($request, Closure $next, $options = []) |
||
|
|
|||
| 20 | { |
||
| 21 | $response = $next($request); |
||
| 22 | |||
| 23 | $response->headers->addCacheControlDirective('no-cache', true); |
||
| 24 | $response->headers->addCacheControlDirective('max-age', 0); |
||
| 25 | $response->headers->addCacheControlDirective('must-revalidate', true); |
||
| 26 | $response->headers->addCacheControlDirective('no-store', true); |
||
| 27 | |||
| 28 | return $response; |
||
| 29 | } |
||
| 31 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.