Skip to content

Commit ef033e1

Browse files
committed
Clean up coding style
1 parent a88cd8a commit ef033e1

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

Curl.class.php

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,27 @@
22
class Curl {
33
const USER_AGENT = 'PHP-Curl-Class/1.0 (+https://github.com/php-curl-class/php-curl-class)';
44

5+
private $_cookies = array();
6+
private $_headers = array();
7+
8+
public $curl;
9+
10+
public $error = FALSE;
11+
public $error_code = 0;
12+
public $error_message = NULL;
13+
14+
public $curl_error = FALSE;
15+
public $curl_error_code = 0;
16+
public $curl_error_message = NULL;
17+
18+
public $http_error = FALSE;
19+
public $http_status_code = 0;
20+
public $http_error_message = NULL;
21+
22+
public $request_headers = NULL;
23+
public $response_headers = NULL;
24+
public $response = NULL;
25+
526
function __construct() {
627
if (!extension_loaded('curl')) {
728
throw new ErrorException('cURL library is not loaded');
@@ -148,27 +169,6 @@ function _exec() {
148169
function __destruct() {
149170
$this->close();
150171
}
151-
152-
private $_cookies = array();
153-
private $_headers = array();
154-
155-
public $curl;
156-
157-
public $error = FALSE;
158-
public $error_code = 0;
159-
public $error_message = NULL;
160-
161-
public $curl_error = FALSE;
162-
public $curl_error_code = 0;
163-
public $curl_error_message = NULL;
164-
165-
public $http_error = FALSE;
166-
public $http_status_code = 0;
167-
public $http_error_message = NULL;
168-
169-
public $request_headers = NULL;
170-
public $response_headers = NULL;
171-
public $response = NULL;
172172
}
173173

174174
function is_array_assoc($array) {

0 commit comments

Comments
 (0)