Conditions | 3 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
60 | public function send($method, $uri, array $data = [], array $headers = []) |
||
61 | { |
||
62 | if ('GET' === strtoupper($method) && !empty($data)) { |
||
63 | $uri = $uri . '?' . http_build_query($data); |
||
64 | $data = []; |
||
65 | } |
||
66 | |||
67 | return $this->httpClient->sendRequest( |
||
68 | new Request($method, $uri, $headers, \GuzzleHttp\json_encode($data)) |
||
69 | ); |
||
70 | } |
||
71 | } |
||
72 |