@@ -9,7 +9,6 @@ |
||
| 9 | 9 | namespace Lan\Ebs\Sdk\Classes; |
| 10 | 10 | |
| 11 | 11 | use ArrayObject; |
| 12 | -use Codeception\Util\Debug; |
|
| 13 | 12 | use Error; |
| 14 | 13 | use Lan\Ebs\Sdk\Client; |
| 15 | 14 | use Lan\Ebs\Sdk\Common; |
@@ -13,6 +13,9 @@ discard block |
||
| 13 | 13 | |
| 14 | 14 | class Curl |
| 15 | 15 | { |
| 16 | + /** |
|
| 17 | + * @param string $host |
|
| 18 | + */ |
|
| 16 | 19 | public static function getResponse($host, $url, $method, $token, array $params) |
| 17 | 20 | { |
| 18 | 21 | $curl = curl_init(); |
@@ -76,6 +79,9 @@ discard block |
||
| 76 | 79 | return $response; |
| 77 | 80 | } |
| 78 | 81 | |
| 82 | + /** |
|
| 83 | + * @param string $message |
|
| 84 | + */ |
|
| 79 | 85 | private static function getError($message, $code) |
| 80 | 86 | { |
| 81 | 87 | return [ |