Completed
Push — scrutinizer-integration ( a42d60 )
by Konstantin
02:53
created
src/entities/Authorization.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,9 +27,9 @@
 block discarded – undo
27 27
      */
28 28
     public function get()
29 29
     {
30
-       return [
31
-           'USER_LOGIN' => $this->login,
32
-           'USER_HASH' => $this->apiHash
33
-       ];
30
+        return [
31
+            'USER_LOGIN' => $this->login,
32
+            'USER_HASH' => $this->apiHash
33
+        ];
34 34
     }
35 35
 }
36 36
\ No newline at end of file
Please login to merge, or discard this patch.
src/RequestHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
57 57
 
58 58
         $this->response = curl_exec($curl);
59
-        $this->httpCode = (int)curl_getinfo($curl, CURLINFO_HTTP_CODE);
59
+        $this->httpCode = (int) curl_getinfo($curl, CURLINFO_HTTP_CODE);
60 60
 
61 61
         curl_close($curl);
62 62
     }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     protected function encodeResponse()
98 98
     {
99 99
         try {
100
-            if ($this->httpCode!= 200 && $this->httpCode != 204) {
100
+            if ($this->httpCode != 200 && $this->httpCode != 204) {
101 101
                 throw new Exception(isset($this->httpErrors[$this->httpCode]) ? $this->httpErrors[$this->httpCode] : 'Undescribed error', $this->httpCode);
102 102
             }
103 103
         } catch (Exception $e) {
Please login to merge, or discard this patch.
src/services/LeadService.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -87,11 +87,11 @@
 block discarded – undo
87 87
      */
88 88
     protected function composeAddFields()
89 89
     {
90
-       $fields = [];
90
+        $fields = [];
91 91
 
92
-       foreach ($this->lead as $lead) {
93
-           $fields[] = $lead->get();
94
-       }
92
+        foreach ($this->lead as $lead) {
93
+            $fields[] = $lead->get();
94
+        }
95 95
 
96 96
         $this->fields['add'] = $fields;
97 97
     }
Please login to merge, or discard this patch.