Skip to content

Commit

Permalink
Adjusting some code styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Ursenbach committed Mar 20, 2018
1 parent e50f925 commit 48cbad6
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/Vimeo/Vimeo.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,18 +180,19 @@ public function setCURLOptions($curl_opts = array())
}

/**
* @param $proxyAddress mandatory address of proxy
* @param null $proxyPort optional number of port
* @param null $proxyPass optional user:password authentication
*/
public function setProxy($proxyAddress, $proxyPort=null, $proxyUserPwd=null)
* @param string $proxy_address mandatory address of proxy
* @param string|null $proxy_port optional number of port
* @param string|nnull $proxy_userpwd optional user:password authentication
*/
public function setProxy($proxy_address, $proxy_port = null, $proxy_userpwd = null)
{
$this->CURL_DEFAULTS[CURLOPT_PROXY] = $proxyAddress;
if ($proxyPort) {
$this->CURL_DEFAULTS[CURLOPT_PROXYPORT] = $proxyPort;
$this->CURL_DEFAULTS[CURLOPT_PROXY] = $proxy_address;
if ($proxy_port) {
$this->CURL_DEFAULTS[CURLOPT_PROXYPORT] = $proxy_port;
}
if ($proxyUserPwd) {
$this->CURL_DEFAULTS[CURLOPT_PROXYUSERPWD] = $proxyUserPwd;

if ($proxy_userpwd) {
$this->CURL_DEFAULTS[CURLOPT_PROXYUSERPWD] = $proxy_userpwd;
}
}

Expand Down

0 comments on commit 48cbad6

Please sign in to comment.