Passed
Branch master (fcacfd)
by Anatoliy
02:23
created
src/stores/RegionBranchStoreUrlJson.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
             if(!$resource){
52 52
                 return null;
53 53
             }
54
-        }catch (\Exception $e){
54
+        } catch (\Exception $e){
55 55
             return null;
56 56
         }
57 57
         foreach ($resource as $item){
Please login to merge, or discard this patch.
src/shared/InnValue.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     {
30 30
         if($this->isValid($inn)){
31 31
             $this->inn=$inn;
32
-        }else{
32
+        } else{
33 33
             throw new \InvalidArgumentException('INN not valid');
34 34
         }
35 35
     }
Please login to merge, or discard this patch.
src/Api.php 1 patch
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.