@@ -275,15 +275,15 @@ |
||
| 275 | 275 | { |
| 276 | 276 | $ch = curl_init(); |
| 277 | 277 | $params['token'] = $this->token; |
| 278 | - $params['user_agent'] = 'pdk_php_library v' . self::VERSION; |
|
| 278 | + $params['user_agent'] = 'pdk_php_library v'.self::VERSION; |
|
| 279 | 279 | |
| 280 | 280 | $query = http_build_query($params); |
| 281 | 281 | if ($doPost === true) { |
| 282 | - curl_setopt($ch, CURLOPT_URL, self::API_ENDPOINT . '/' . $method); |
|
| 282 | + curl_setopt($ch, CURLOPT_URL, self::API_ENDPOINT.'/'.$method); |
|
| 283 | 283 | curl_setopt($ch, CURLOPT_POST, 1); |
| 284 | 284 | curl_setopt($ch, CURLOPT_POSTFIELDS, $query); |
| 285 | 285 | } else { |
| 286 | - curl_setopt($ch, CURLOPT_URL, self::API_ENDPOINT . '/' . $method . '?' . $query); |
|
| 286 | + curl_setopt($ch, CURLOPT_URL, self::API_ENDPOINT.'/'.$method.'?'.$query); |
|
| 287 | 287 | } |
| 288 | 288 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
| 289 | 289 | |
@@ -154,7 +154,7 @@ |
||
| 154 | 154 | */ |
| 155 | 155 | public function getPickupPoints($params = array()) |
| 156 | 156 | { |
| 157 | - return $this->makeApiCall('pickup_points', false, $params); |
|
| 157 | + return $this->makeApiCall('pickup_points', false, $params); |
|
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | /** |