| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 69 | public function send($params): array |
||
| 70 | { |
||
| 71 | $request = $this->client->post($this->getRobotUrl(), [ |
||
| 72 | 'body' => json_encode($params), |
||
| 73 | 'headers' => [ |
||
| 74 | 'Content-Type' => 'application/json', |
||
| 75 | ], |
||
| 76 | 'verify' => $this->config['ssl_verify'] ?? true, |
||
| 77 | ]); |
||
| 78 | |||
| 79 | $result = $request->getBody()->getContents(); |
||
| 80 | return json_decode($result, true); |
||
| 81 | } |
||
| 83 |