Conditions | 2 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
54 | 3 | public function createErrorResponse(\Exception $exception, JsonRpcRequest $fromRequest = null) : JsonRpcResponse |
|
55 | { |
||
56 | 3 | return $this->createEmptyResponse($fromRequest) |
|
57 | 3 | ->setError( |
|
58 | 3 | $exception instanceof JsonRpcExceptionInterface |
|
59 | 2 | ? $exception |
|
60 | 3 | : new JsonRpcInternalErrorException($exception) |
|
61 | ) |
||
65 |