@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | { |
31 | 31 | $connection = $this->getConnection(); |
32 | 32 | $conn = $this->getCurlConnection($connection->getConfig('persistent')); |
33 | - $url = $this->scheme.'://'.$connection->getHost().':'.$connection->getPort(); |
|
33 | + $url = $this->scheme . '://' . $connection->getHost() . ':' . $connection->getPort(); |
|
34 | 34 | $endpoint = $request->getPath(); |
35 | 35 | $url .= $endpoint; |
36 | 36 | $url = $this->setupURI($url, $request->getQuery()); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | curl_setopt($conn, CURLOPT_CUSTOMREQUEST, $method); |
57 | 57 | curl_setopt($conn, CURLOPT_HTTPHEADER, $headers); |
58 | 58 | |
59 | - if ($connection->getConnectTimeout()>0) { |
|
59 | + if ($connection->getConnectTimeout() > 0) { |
|
60 | 60 | curl_setopt($conn, CURLOPT_CONNECTTIMEOUT, $connection->getConnectTimeout()); |
61 | 61 | } |
62 | 62 | |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | curl_setopt( |
66 | 66 | $conn, |
67 | 67 | CURLOPT_USERPWD, |
68 | - $connection->getConfig('username').":".$connection->getConfig('password') |
|
68 | + $connection->getConfig('username') . ":" . $connection->getConfig('password') |
|
69 | 69 | ); |
70 | 70 | } |
71 | 71 | if ($connection->getConfig('proxy') !== null) { |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | 'body' => $request->getBody() |
99 | 99 | ]); |
100 | 100 | //hard error |
101 | - if ($errorno>0) { |
|
101 | + if ($errorno > 0) { |
|
102 | 102 | $error = curl_error($conn); |
103 | 103 | |
104 | 104 | self::$curl = null; |