| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 41 | public function process( |
||
| 42 | RequestInterface $request, |
||
| 43 | ResponseInterface $response, |
||
| 44 | DelegateInterface $next = null |
||
| 45 | ) { |
||
| 46 | try { |
||
| 47 | if ($next) { |
||
| 48 | return $next->next($request, $response); |
||
| 49 | } |
||
| 50 | return $response; |
||
| 51 | } catch (\Exception $e) { |
||
| 52 | return WhoopsRunner::handle($e, $request); |
||
| 53 | } |
||
| 54 | } |
||
| 55 | } |
||
| 56 |