@@ -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, |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | */ |
| 156 | 156 | public function buildHttpQuery(array $params, bool $urlencode = null, string $delimiter = null, string $enclosure = null):string { |
| 157 | 157 | |
| 158 | - if(empty($params)) { |
|
| 158 | + if(empty($params)){ |
|
| 159 | 159 | return ''; |
| 160 | 160 | } |
| 161 | 161 | |
@@ -176,13 +176,13 @@ discard block |
||
| 176 | 176 | |
| 177 | 177 | foreach($params as $parameter => $value){ |
| 178 | 178 | |
| 179 | - if(is_array($value)) { |
|
| 179 | + if(is_array($value)){ |
|
| 180 | 180 | // If two or more parameters share the same name, they are sorted by their value |
| 181 | 181 | // Ref: Spec: 9.1.1 (1) |
| 182 | 182 | // June 12th, 2010 - changed to sort because of issue 164 by hidetaka |
| 183 | 183 | sort($value, SORT_STRING); |
| 184 | 184 | |
| 185 | - foreach ($value as $duplicateValue) { |
|
| 185 | + foreach($value as $duplicateValue){ |
|
| 186 | 186 | $pairs[] = $parameter.'='.$enclosure.$duplicateValue.$enclosure; |
| 187 | 187 | } |
| 188 | 188 | |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | */ |
| 156 | 156 | public function buildHttpQuery(array $params, bool $urlencode = null, string $delimiter = null, string $enclosure = null):string { |
| 157 | 157 | |
| 158 | - if(empty($params)) { |
|
| 158 | + if(empty($params)){ |
|
| 159 | 159 | return ''; |
| 160 | 160 | } |
| 161 | 161 | |
@@ -176,13 +176,13 @@ discard block |
||
| 176 | 176 | |
| 177 | 177 | foreach($params as $parameter => $value){ |
| 178 | 178 | |
| 179 | - if(is_array($value)) { |
|
| 179 | + if(is_array($value)){ |
|
| 180 | 180 | // If two or more parameters share the same name, they are sorted by their value |
| 181 | 181 | // Ref: Spec: 9.1.1 (1) |
| 182 | 182 | // June 12th, 2010 - changed to sort because of issue 164 by hidetaka |
| 183 | 183 | sort($value, SORT_STRING); |
| 184 | 184 | |
| 185 | - foreach ($value as $duplicateValue) { |
|
| 185 | + foreach ($value as $duplicateValue){ |
|
| 186 | 186 | $pairs[] = $parameter.'='.$enclosure.$duplicateValue.$enclosure; |
| 187 | 187 | } |
| 188 | 188 | |