Skip to content

Commit

Permalink
Remove access declaration on public functions
Browse files Browse the repository at this point in the history
  • Loading branch information
shuber committed Sep 8, 2009
1 parent c92be11 commit 7965e91
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions lib/curl.php
Expand Up @@ -74,7 +74,7 @@ class Curl {
* Sets the $cookie_file to "curl_cookie.txt" in the current directory
* Also sets the $user_agent to $_SERVER['HTTP_USER_AGENT'] if it exists, 'Curl/PHP '.PHP_VERSION.' (http://github.com/shuber/curl)' otherwise
**/
public function __construct() {
function __construct() {
$this->cookie_file = dirname(__FILE__).DIRECTORY_SEPARATOR.'curl_cookie.txt';
$this->user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : 'Curl/PHP '.PHP_VERSION.' (http://github.com/shuber/curl)';
}
Expand All @@ -88,7 +88,7 @@ public function __construct() {
* @param array|string $vars
* @return CurlResponse object
**/
public function delete($url, $vars = array()) {
function delete($url, $vars = array()) {
return $this->request('DELETE', $url, $vars);
}

Expand All @@ -97,7 +97,7 @@ public function delete($url, $vars = array()) {
*
* @return string
**/
public function error() {
function error() {
return $this->error;
}

Expand All @@ -110,7 +110,7 @@ public function error() {
* @param array|string $vars
* @return CurlResponse
**/
public function get($url, $vars = array()) {
function get($url, $vars = array()) {
if (!empty($vars)) {
$url .= (stripos($url, '?') !== false) ? '&' : '?';
$url .= (is_string($vars)) ? $vars : http_build_query($vars, '', '&');
Expand All @@ -127,7 +127,7 @@ public function get($url, $vars = array()) {
* @param array|string $vars
* @return CurlResponse
**/
public function head($url, $vars = array()) {
function head($url, $vars = array()) {
return $this->request('HEAD', $url, $vars);
}

Expand All @@ -138,7 +138,7 @@ public function head($url, $vars = array()) {
* @param array|string $vars
* @return CurlResponse|boolean
**/
public function post($url, $vars = array()) {
function post($url, $vars = array()) {
return $this->request('POST', $url, $vars);
}

Expand All @@ -151,7 +151,7 @@ public function post($url, $vars = array()) {
* @param array|string $vars
* @return CurlResponse|boolean
**/
public function put($url, $vars = array()) {
function put($url, $vars = array()) {
return $this->request('PUT', $url, $vars);
}

Expand Down
4 changes: 2 additions & 2 deletions lib/curl_response.php
Expand Up @@ -34,7 +34,7 @@ class CurlResponse {
*
* @param string $response
**/
public function __construct($response) {
function __construct($response) {
# Headers regex
$pattern = '#HTTP/\d\.\d.*?$.*?\r\n\r\n#ims';

Expand Down Expand Up @@ -71,7 +71,7 @@ public function __construct($response) {
*
* @return string
**/
public function __toString() {
function __toString() {
return $this->body;
}

Expand Down

0 comments on commit 7965e91

Please sign in to comment.