@@ -20,6 +20,7 @@ |
||
20 | 20 | * HTTPClientInterface constructor. |
21 | 21 | * |
22 | 22 | * @param \chillerlan\Traits\ContainerInterface $options |
23 | + * @return void |
|
23 | 24 | */ |
24 | 25 | public function __construct(ContainerInterface $options); |
25 | 26 |
@@ -39,7 +39,7 @@ |
||
39 | 39 | curl_setopt_array($this->http, [ |
40 | 40 | CURLOPT_HEADER => false, |
41 | 41 | CURLOPT_RETURNTRANSFER => true, |
42 | - CURLOPT_PROTOCOLS => CURLPROTO_HTTP|CURLPROTO_HTTPS, |
|
42 | + CURLOPT_PROTOCOLS => CURLPROTO_HTTP | CURLPROTO_HTTPS, |
|
43 | 43 | CURLOPT_CAINFO => $this->options->ca_info, |
44 | 44 | CURLOPT_SSL_VERIFYPEER => true, |
45 | 45 | CURLOPT_SSL_VERIFYHOST => 2, |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | */ |
86 | 86 | public function buildQuery(array $params, bool $urlencode = null, string $delimiter = null, string $enclosure = null):string { |
87 | 87 | |
88 | - if(empty($params)) { |
|
88 | + if(empty($params)){ |
|
89 | 89 | return ''; |
90 | 90 | } |
91 | 91 | |
@@ -106,13 +106,13 @@ discard block |
||
106 | 106 | |
107 | 107 | foreach($params as $parameter => $value){ |
108 | 108 | |
109 | - if(is_array($value)) { |
|
109 | + if(is_array($value)){ |
|
110 | 110 | // If two or more parameters share the same name, they are sorted by their value |
111 | 111 | // Ref: Spec: 9.1.1 (1) |
112 | 112 | // June 12th, 2010 - changed to sort because of issue 164 by hidetaka |
113 | 113 | sort($value, SORT_STRING); |
114 | 114 | |
115 | - foreach ($value as $duplicateValue) { |
|
115 | + foreach($value as $duplicateValue){ |
|
116 | 116 | $pairs[] = $parameter.'='.$enclosure.$duplicateValue.$enclosure; |
117 | 117 | } |
118 | 118 |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | */ |
86 | 86 | public function buildQuery(array $params, bool $urlencode = null, string $delimiter = null, string $enclosure = null):string { |
87 | 87 | |
88 | - if(empty($params)) { |
|
88 | + if(empty($params)){ |
|
89 | 89 | return ''; |
90 | 90 | } |
91 | 91 | |
@@ -106,13 +106,13 @@ discard block |
||
106 | 106 | |
107 | 107 | foreach($params as $parameter => $value){ |
108 | 108 | |
109 | - if(is_array($value)) { |
|
109 | + if(is_array($value)){ |
|
110 | 110 | // If two or more parameters share the same name, they are sorted by their value |
111 | 111 | // Ref: Spec: 9.1.1 (1) |
112 | 112 | // June 12th, 2010 - changed to sort because of issue 164 by hidetaka |
113 | 113 | sort($value, SORT_STRING); |
114 | 114 | |
115 | - foreach ($value as $duplicateValue) { |
|
115 | + foreach ($value as $duplicateValue){ |
|
116 | 116 | $pairs[] = $parameter.'='.$enclosure.$duplicateValue.$enclosure; |
117 | 117 | } |
118 | 118 |