| Conditions | 5 |
| Paths | 5 |
| Total Lines | 12 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 5 |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | 18 | public function execute($command, callable $next) |
|
| 39 | { |
||
| 40 | try { |
||
| 41 | 18 | return $next($command); |
|
| 42 | 18 | } catch (ExceptionInterface $exception) { |
|
| 43 | 4 | throw $exception; |
|
| 44 | 14 | } catch (ValidationException $exception) { |
|
| 45 | 1 | $this->exceptionHandler->throwServiceExceptionFromViolationException($exception); |
|
| 46 | 13 | } catch (RequestException $exception) { |
|
| 47 | 6 | $this->exceptionHandler->throwServiceExceptionFromRequestException($exception); |
|
| 48 | 7 | } catch (\Throwable $exception) { |
|
| 49 | 7 | $this->exceptionHandler->throwServiceException($exception); |
|
| 50 | } |
||
| 53 |