Permalink
Browse files

Remove access declaration on public functions

  • Loading branch information...
1 parent c92be11 commit 7965e9164ba69fec8d5da9e4f8bd4aece087b2fe @shuber committed Sep 8, 2009
Showing with 9 additions and 9 deletions.
  1. +7 −7 lib/curl.php
  2. +2 −2 lib/curl_response.php
View
@@ -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)';
}
@@ -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);
}
@@ -97,7 +97,7 @@ public function delete($url, $vars = array()) {
*
* @return string
**/
- public function error() {
+ function error() {
return $this->error;
}
@@ -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, '', '&');
@@ -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);
}
@@ -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);
}
@@ -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);
}
View
@@ -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';
@@ -71,7 +71,7 @@ public function __construct($response) {
*
* @return string
**/
- public function __toString() {
+ function __toString() {
return $this->body;
}

0 comments on commit 7965e91

Please sign in to comment.