Edit File by line
/home/barbar84/public_h.../wp-inclu.../Requests/Exceptio.../Transpor...
File: cURL.php
<?php
[0] Fix | Delete
[1] Fix | Delete
class Requests_Exception_Transport_cURL extends Requests_Exception_Transport {
[2] Fix | Delete
[3] Fix | Delete
const EASY = 'cURLEasy';
[4] Fix | Delete
const MULTI = 'cURLMulti';
[5] Fix | Delete
const SHARE = 'cURLShare';
[6] Fix | Delete
[7] Fix | Delete
/**
[8] Fix | Delete
* cURL error code
[9] Fix | Delete
*
[10] Fix | Delete
* @var integer
[11] Fix | Delete
*/
[12] Fix | Delete
protected $code = -1;
[13] Fix | Delete
[14] Fix | Delete
/**
[15] Fix | Delete
* Which type of cURL error
[16] Fix | Delete
*
[17] Fix | Delete
* EASY|MULTI|SHARE
[18] Fix | Delete
*
[19] Fix | Delete
* @var string
[20] Fix | Delete
*/
[21] Fix | Delete
protected $type = 'Unknown';
[22] Fix | Delete
[23] Fix | Delete
/**
[24] Fix | Delete
* Clear text error message
[25] Fix | Delete
*
[26] Fix | Delete
* @var string
[27] Fix | Delete
*/
[28] Fix | Delete
protected $reason = 'Unknown';
[29] Fix | Delete
[30] Fix | Delete
public function __construct($message, $type, $data = null, $code = 0) {
[31] Fix | Delete
if ($type !== null) {
[32] Fix | Delete
$this->type = $type;
[33] Fix | Delete
}
[34] Fix | Delete
[35] Fix | Delete
if ($code !== null) {
[36] Fix | Delete
$this->code = $code;
[37] Fix | Delete
}
[38] Fix | Delete
[39] Fix | Delete
if ($message !== null) {
[40] Fix | Delete
$this->reason = $message;
[41] Fix | Delete
}
[42] Fix | Delete
[43] Fix | Delete
$message = sprintf('%d %s', $this->code, $this->reason);
[44] Fix | Delete
parent::__construct($message, $this->type, $data, $this->code);
[45] Fix | Delete
}
[46] Fix | Delete
[47] Fix | Delete
/**
[48] Fix | Delete
* Get the error message
[49] Fix | Delete
*/
[50] Fix | Delete
public function getReason() {
[51] Fix | Delete
return $this->reason;
[52] Fix | Delete
}
[53] Fix | Delete
[54] Fix | Delete
}
[55] Fix | Delete
[56] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function