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