Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3.0416 |
Changes | 0 |
1 | <?php |
||
33 | 1 | protected function main(): ResponseInterface |
|
34 | { |
||
35 | try { |
||
36 | 1 | return $this->innerMiddleware->process($this->request, $this->handler); |
|
37 | 1 | } catch (\Throwable $e) { |
|
38 | 1 | if ($e instanceof $this->catchClass) { |
|
39 | 1 | return ($this->catcher)($e, $this->request, $this->handler, $this->innerMiddleware); |
|
40 | } |
||
41 | throw $e; |
||
42 | } |
||
45 |