@@ -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 | |