| Conditions | 5 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 5 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | 5 | public function handleException(GetResponseForExceptionEvent $event): void |
|
| 25 | { |
||
| 26 | 5 | $exception = $event->getException(); |
|
| 27 | 5 | if ($exception instanceof NoKeyFoundForRequesterException |
|
| 28 | 4 | || $exception instanceof RequesterHeaderMissingException |
|
| 29 | 3 | || $exception instanceof SignerHeaderMissingException |
|
| 30 | 5 | || $exception instanceof VerifyRequestException |
|
| 31 | ) { |
||
| 32 | 4 | $event->setException(new BadRequestHttpException($exception->getMessage())); |
|
| 33 | 4 | $event->stopPropagation(); |
|
| 34 | } |
||
| 37 |