Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
29 | public function executeRequest($uri, $body) |
||
30 | { |
||
31 | $request = $this->messageFactory->createRequest('POST', $uri, [ |
||
32 | 'Content-Type' => 'application/x-www-form-urlencoded', |
||
33 | ], $body); |
||
34 | $response = $this->client->sendRequest($request); |
||
35 | |||
36 | return (string) $response->getBody(); |
||
37 | } |
||
38 | } |
||
39 |