@@ -296,8 +296,7 @@ discard block |
||
| 296 | 296 | if ( ! empty($data)) |
| 297 | 297 | { |
| 298 | 298 | $this->setOption(CURLOPT_POSTFIELDS, $this->optionParser->parseData($data)); |
| 299 | - } |
|
| 300 | - else |
|
| 299 | + } else |
|
| 301 | 300 | { |
| 302 | 301 | $this->unsetOption(CURLOPT_POSTFIELDS); |
| 303 | 302 | } |
@@ -315,8 +314,7 @@ discard block |
||
| 315 | 314 | if ( ! empty($headers)) |
| 316 | 315 | { |
| 317 | 316 | $this->setOption(CURLOPT_HTTPHEADER, $this->optionParser->parseHeaders($headers)); |
| 318 | - } |
|
| 319 | - else |
|
| 317 | + } else |
|
| 320 | 318 | { |
| 321 | 319 | $this->unsetOption(CURLOPT_HTTPHEADER); |
| 322 | 320 | } |
@@ -218,8 +218,7 @@ |
||
| 218 | 218 | if ( ! $this->isInitialized() || ! function_exists('curl_reset')) |
| 219 | 219 | { |
| 220 | 220 | $this->initialize(); |
| 221 | - } |
|
| 222 | - else |
|
| 221 | + } else |
|
| 223 | 222 | { |
| 224 | 223 | // PHP >= 5.5.0 |
| 225 | 224 | curl_reset($this->curl); |