@@ -27,9 +27,9 @@ |
||
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 |
@@ -56,7 +56,7 @@ discard block |
||
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 |
||
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) { |
@@ -87,11 +87,11 @@ |
||
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 | } |