Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
29 | 2 | public function index(Request $request) : Response |
|
30 | { |
||
31 | 2 | if (Request::METHOD_POST !== $request->getMethod()) { |
|
32 | 1 | return new Response('A JSON-RPC HTTP call must use POST', Response::HTTP_METHOD_NOT_ALLOWED); |
|
33 | } |
||
34 | |||
35 | 1 | return new Response( |
|
36 | 1 | $this->sdkEndpoint->index($request->getContent()) |
|
37 | ); |
||
40 |