| Conditions | 2 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | public function __invoke(Request $request): Response |
||
| 36 | { |
||
| 37 | try { |
||
| 38 | $data = $this->apiKeysTestResolver->fromRequest($request); |
||
| 39 | |||
| 40 | return new Response($this->twig->render( |
||
| 41 | '@BitBagSyliusMolliePlugin/Admin/PaymentMethod/testApiKeys.html.twig', |
||
| 42 | [ |
||
| 43 | 'tests' => $data, |
||
| 44 | ] |
||
| 45 | )); |
||
| 46 | } catch (\Exception $exception) { |
||
| 47 | return new Response($exception->getMessage(), Response::HTTP_BAD_REQUEST); |
||
| 48 | } |
||
| 51 |