| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 4 | public function onJsonRpcException(GetResponseForExceptionEvent $event) |
|
| 24 | { |
||
| 25 | 4 | $exception = $event->getException(); |
|
| 26 | 4 | if ($exception instanceof InvalidRequestException) { |
|
| 27 | 3 | $event->setException(new BadRequestHttpException($exception->getMessage(), $exception)); |
|
| 28 | 3 | } |
|
| 29 | 4 | } |
|
| 30 | } |
||
| 31 |