default:
curl_setopt($this->handle, CURLOPT_CUSTOMREQUEST, $options['type']);
if (!empty($data)) {
- curl_setopt( $this->handle, CURLOPT_POSTFIELDS, $data );
+ curl_setopt($this->handle, CURLOPT_POSTFIELDS, $data);
}
}
* @return boolean True if the transport is valid, false otherwise.
*/
public static function test($capabilities = array()) {
- if (!function_exists('curl_init') && !function_exists('curl_exec')) {
+ if (!function_exists('curl_init') || !function_exists('curl_exec')) {
return false;
}