Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
26 | 6 | public function sendEvent(EventCollection $events) |
|
27 | { |
||
28 | 6 | $promise = $this->client->postAsync('events', [ |
|
29 | 6 | 'body' => json_encode($events), |
|
30 | 'headers' => [ |
||
31 | 3 | 'X-Insert-Key' => $this->key, |
|
32 | 3 | 'Content-Type' => 'application/json', |
|
33 | ] |
||
34 | ]); |
||
35 | |||
36 | 3 | return $promise; |
|
37 | } |
||
38 | } |
||
39 |