Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
35 | 132 | public function run($method, $url, array $data = []) |
|
36 | { |
||
37 | 132 | $client = new Client(['handler' => $this->handler]); |
|
38 | |||
39 | 132 | return json_decode($client->request($method, $url, array_merge($data, [ |
|
40 | 132 | 'Accept' => 'application/json', |
|
41 | 132 | 'Content-Type' => 'application/json', |
|
42 | 132 | 'uSER-aGENT' => 'JulianoBailao/DomusApi', |
|
43 | 132 | 'debug' => true, |
|
44 | 132 | ]))->getBody()); |
|
45 | } |
||
46 | } |
||
47 |