| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 34 | public function executeRequest(string $uri, string $body): string |
||
| 35 | { |
||
| 36 | $request = new Request('POST', $uri, [ |
||
| 37 | 'Content-Type' => 'application/x-www-form-urlencoded', |
||
| 38 | ], $body); |
||
| 39 | $response = $this->client->send($request); |
||
| 40 | |||
| 41 | return (string) $response->getBody(); |
||
| 42 | } |
||
| 43 | } |
||
| 44 |