| Conditions | 5 | 
| Paths | 7 | 
| Total Lines | 18 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 20 | public function handle(Request $request, Closure $next): Response  | 
            ||
| 21 |     { | 
            ||
| 22 |         if ($this->responseCache->enabled($request)) { | 
            ||
| 23 |             if ($this->responseCache->hasBeenCached($request)) { | 
            ||
| 24 | return $this->responseCache->getCachedResponseFor($request);  | 
            ||
| 25 | }  | 
            ||
| 26 | }  | 
            ||
| 27 | |||
| 28 | $response = $next($request);  | 
            ||
| 29 | |||
| 30 |         if ($this->responseCache->enabled($request)) { | 
            ||
| 31 |             if ($this->responseCache->shouldCache($request, $response)) { | 
            ||
| 32 | $this->responseCache->cacheResponse($request, $response);  | 
            ||
| 33 | }  | 
            ||
| 34 | }  | 
            ||
| 35 | |||
| 36 | return $response;  | 
            ||
| 37 | }  | 
            ||
| 38 | }  | 
            ||
| 39 |