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