Skip to content

Commit

Permalink
PHP Doc cleanup (#47)
Browse files Browse the repository at this point in the history
* PHP Doc cleanup

+ Remove boolean typo
+ Use boolean instead of bool for all phpdoc types
+ Fixed variable description
+ Removed symfony coding standard annotation.

* Update Curl.php

* Update Curl.php
  • Loading branch information
nadar authored and amouhzi committed May 23, 2018
1 parent d4970cf commit 958363d
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/Curl/Curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class Curl
public $curl;

/**
* @var booelan Whether an error occured or not
* @var bool Whether an error occured or not
*/
public $error = false;

Expand Down Expand Up @@ -113,7 +113,7 @@ class Curl
public $http_error = false;

/**
* @var int Contains the error code of the curren request, 0 means no error happend
* @var int Contains the status code of the current processed request.
*/
public $http_status_code = 0;

Expand All @@ -138,7 +138,7 @@ class Curl
public $response = null;

/**
* @var boolean Whether the current section of response headers is after 'HTTP/1.1 100 Continue'
* @var bool Whether the current section of response headers is after 'HTTP/1.1 100 Continue'
*/
protected $response_header_continue = false;

Expand Down Expand Up @@ -292,7 +292,7 @@ public function get($url, $data = array())
/**
* Make a post request with optional post data.
*
* @param string $url The url to make the get request
* @param string $url The url to make the post request
* @param array $data Post data to pass to the url
* @return self
*/
Expand All @@ -309,9 +309,9 @@ public function post($url, $data = array())
*
* The put request data can be either sent via payload or as get paramters of the string.
*
* @param string $url The url to make the get request
* @param array $data Optional data to pass to the $url
* @param bool $payload Whether the data should be transmitted trough payload or as get parameters of the string
* @param string $url The url to make the put request
* @param array $data Optional data to pass to the $url
* @param bool $payload Whether the data should be transmitted trough payload or as get parameters of the string
* @return self
*/
public function put($url, $data = array(), $payload = false)
Expand All @@ -335,9 +335,9 @@ public function put($url, $data = array(), $payload = false)
*
* The patch request data can be either sent via payload or as get paramters of the string.
*
* @param string $url The url to make the get request
* @param array $data Optional data to pass to the $url
* @param bool $payload Whether the data should be transmitted trough payload or as get parameters of the string
* @param string $url The url to make the patch request
* @param array $data Optional data to pass to the $url
* @param bool $payload Whether the data should be transmitted trough payload or as get parameters of the string
* @return self
*/
public function patch($url, $data = array(), $payload = false)
Expand All @@ -359,9 +359,9 @@ public function patch($url, $data = array(), $payload = false)
/**
* Make a delete request with optional data.
*
* @param string $url The url to make the delete request
* @param array $data Optional data to pass to the $url
* @param bool $payload Whether the data should be transmitted trough payload or as get parameters of the string
* @param string $url The url to make the delete request
* @param array $data Optional data to pass to the $url
* @param bool $payload Whether the data should be transmitted trough payload or as get parameters of the string
* @return self
*/
public function delete($url, $data = array(), $payload = false)
Expand Down

0 comments on commit 958363d

Please sign in to comment.