Conditions | 3 |
Paths | 3 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
24 | 3 | public function process(Request $request, RequestHandler $requestHandler): Response |
|
25 | { |
||
26 | try { |
||
27 | 3 | return $requestHandler->handle($request); |
|
28 | 2 | } catch (HttpException $httpException) { |
|
29 | 1 | return $this->errorHandler->handleHttpException($httpException); |
|
30 | 1 | } catch (Throwable $error) { |
|
31 | 1 | return $this->errorHandler->handle($error); |
|
32 | } |
||
35 |