@@ -162,21 +162,21 @@ |
||
| 162 | 162 | |
| 163 | 163 | private function _json_encoder($params) |
| 164 | 164 | { |
| 165 | - if ($this->json === true) { |
|
| 166 | - return json_encode($params); |
|
| 167 | - } |
|
| 165 | + if ($this->json === true) { |
|
| 166 | + return json_encode($params); |
|
| 167 | + } |
|
| 168 | 168 | } |
| 169 | 169 | |
| 170 | 170 | private function _createHeaders($headers = null) |
| 171 | 171 | { |
| 172 | - $headers[] = $this->_api_key_var.$this->_api_key; |
|
| 173 | - if ($this->json === true) { |
|
| 174 | - $headers[] = 'Content-Type: application/json'; |
|
| 175 | - } |
|
| 176 | - if ($this->accept === true) { |
|
| 177 | - $headers[] = 'Accept: application/json'; |
|
| 178 | - } |
|
| 179 | - return $headers; |
|
| 172 | + $headers[] = $this->_api_key_var.$this->_api_key; |
|
| 173 | + if ($this->json === true) { |
|
| 174 | + $headers[] = 'Content-Type: application/json'; |
|
| 175 | + } |
|
| 176 | + if ($this->accept === true) { |
|
| 177 | + $headers[] = 'Accept: application/json'; |
|
| 178 | + } |
|
| 179 | + return $headers; |
|
| 180 | 180 | } |
| 181 | 181 | |
| 182 | 182 | private function _parseHeaders($raw_headers) |