Total Complexity | 5 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
10 | class CacheMiddleware |
||
11 | { |
||
12 | /** |
||
13 | * @var \Swis\Laravel\StaticRequestCache\StaticRequestCache |
||
14 | */ |
||
15 | protected $staticRequestCache; |
||
16 | |||
17 | /** |
||
18 | * @param \Swis\Laravel\StaticRequestCache\StaticRequestCache $staticRequestCache |
||
19 | */ |
||
20 | 45 | public function __construct(StaticRequestCache $staticRequestCache) |
|
23 | 45 | } |
|
24 | |||
25 | /** |
||
26 | * Handle an incoming request. |
||
27 | * |
||
28 | * @param Request $request |
||
29 | * @param \Closure $next |
||
30 | * @return mixed |
||
31 | */ |
||
32 | 9 | public function handle($request, Closure $next) |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * @param \Illuminate\Http\Request $request |
||
39 | * @param \Symfony\Component\HttpFoundation\Response $response |
||
40 | */ |
||
41 | 28 | public function terminate(Request $request, Response $response): void |
|
56 |