@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | case 'POST': |
133 | 133 | curl_setopt(/** @scrutinizer ignore-type */ $ch, CURLOPT_POST, true); |
134 | 134 | if ($this->json === true) { |
135 | - $params = json_encode($params); |
|
135 | + $params = json_encode($params); |
|
136 | 136 | } |
137 | 137 | curl_setopt(/** @scrutinizer ignore-type */ $ch, CURLOPT_POSTFIELDS, $params); |
138 | 138 | break; |
@@ -165,14 +165,14 @@ discard block |
||
165 | 165 | |
166 | 166 | private function _createHeaders($headers = null) |
167 | 167 | { |
168 | - $headers[] = $this->_api_key_var.$this->_api_key; |
|
169 | - if ($this->json === true) { |
|
170 | - $headers[] = 'Content-Type: application/json'; |
|
171 | - } |
|
172 | - if ($this->accept === true) { |
|
173 | - $headers[] = 'Accept: application/json'; |
|
174 | - } |
|
175 | - return $headers; |
|
168 | + $headers[] = $this->_api_key_var.$this->_api_key; |
|
169 | + if ($this->json === true) { |
|
170 | + $headers[] = 'Content-Type: application/json'; |
|
171 | + } |
|
172 | + if ($this->accept === true) { |
|
173 | + $headers[] = 'Accept: application/json'; |
|
174 | + } |
|
175 | + return $headers; |
|
176 | 176 | } |
177 | 177 | |
178 | 178 | private function _parseHeaders($raw_headers) |