| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 56 | private function buildContext(string $payload) |
||
| 57 | { |
||
| 58 | $options = array( |
||
| 59 | 'http' => array( |
||
| 60 | 'method' => 'POST', |
||
| 61 | 'protocol_version' => 1.1, |
||
| 62 | 'timeout' => $this->timeout, |
||
| 63 | 'max_redirects' => 2, |
||
| 64 | 'header' => implode("\r\n", $this->headers), |
||
| 65 | 'content' => $payload, |
||
| 66 | 'ignore_errors' => true, |
||
| 67 | ) |
||
| 68 | ); |
||
| 69 | return stream_context_create($options); |
||
| 70 | } |
||
| 71 | } |
||
| 72 |