@@ -77,8 +77,7 @@ discard block |
||
77 | 77 | { |
78 | 78 | if(!empty($parameters)) { |
79 | 79 | $path = sprintf("%s/?%s", $endpoint, http_build_query($parameters)); |
80 | - } |
|
81 | - else { |
|
80 | + } else { |
|
82 | 81 | $path = $endpoint; |
83 | 82 | } |
84 | 83 | |
@@ -180,8 +179,9 @@ discard block |
||
180 | 179 | CURLOPT_POSTFIELDS => $parameters |
181 | 180 | ) ); |
182 | 181 | |
183 | - if(!class_exists("\CURLFile") && defined('CURLOPT_SAFE_UPLOAD')) |
|
184 | - $ch->setOption( CURLOPT_SAFE_UPLOAD, false ); |
|
182 | + if(!class_exists("\CURLFile") && defined('CURLOPT_SAFE_UPLOAD')) { |
|
183 | + $ch->setOption( CURLOPT_SAFE_UPLOAD, false ); |
|
184 | + } |
|
185 | 185 | |
186 | 186 | break; |
187 | 187 | case 'DELETE': |