| Total Complexity | 3 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class CurlWrapper |
||
| 18 | { |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Method send HTTP request |
||
| 22 | * |
||
| 23 | * @param string $uRL |
||
| 24 | * URL |
||
| 25 | * @param array $headers |
||
| 26 | * Headers |
||
| 27 | * @param string $method |
||
| 28 | * Request HTTP Method |
||
| 29 | * @param array $data |
||
| 30 | * Request data |
||
| 31 | * @return array Response body and HTTP code |
||
| 32 | */ |
||
| 33 | public static function sendRequest(string $uRL, array $headers, string $method, array $data = []): array |
||
| 66 |