@@ -42,6 +42,9 @@ |
||
42 | 42 | return $this->send($this->urlCheckInn,http_build_query(['companyinn'=>$inn->getInn()])); |
43 | 43 | } |
44 | 44 | |
45 | + /** |
|
46 | + * @param string $url |
|
47 | + */ |
|
45 | 48 | private function send($url, string $data = null, string $method = 'POST'): CurlResponse |
46 | 49 | { |
47 | 50 | $curl = curl_init(); |
@@ -39,14 +39,14 @@ |
||
39 | 39 | |
40 | 40 | public function innCheck(InnValue $inn): CurlResponse |
41 | 41 | { |
42 | - return $this->send($this->urlCheckInn,http_build_query(['companyinn'=>$inn->getInn()])); |
|
42 | + return $this->send($this->urlCheckInn, http_build_query(['companyinn'=>$inn->getInn()])); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | private function send($url, string $data = null, string $method = 'POST'): CurlResponse |
46 | 46 | { |
47 | 47 | $curl = curl_init(); |
48 | 48 | |
49 | - if(!$curl){ |
|
49 | + if (!$curl) { |
|
50 | 50 | throw new \Exception('Curl not initialize'); |
51 | 51 | } |
52 | 52 |