Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
38 | protected function send(string $data): void |
||
39 | { |
||
40 | $this->httpClient->request( |
||
41 | 'POST', |
||
42 | 'https://logs-01.loggly.com/inputs/' . $this->token, |
||
43 | [ |
||
44 | 'Content-Type' => 'application/json', |
||
45 | 'Content-Length' => \strlen($data), |
||
46 | ], |
||
47 | '1.1' |
||
48 | )->end($data); |
||
49 | } |
||
50 | } |
||
51 |