Passed
Branch master (fcacfd)
by Anatoliy
02:23
created
src/Api.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -42,6 +42,9 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,14 +39,14 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.