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