@@ -115,12 +115,12 @@ discard block |
||
| 115 | 115 | foreach ($data as $id => $value) { |
| 116 | 116 | if ($id === $fileKeyName) { |
| 117 | 117 | $data = new MultipartData( |
| 118 | - (string) $id, |
|
| 118 | + (string)$id, |
|
| 119 | 119 | stream_get_contents($stream), |
| 120 | 120 | pathinfo($filename, PATHINFO_BASENAME) |
| 121 | 121 | ); |
| 122 | 122 | } else { |
| 123 | - $data = new MultipartData((string) $id, (string) $value); |
|
| 123 | + $data = new MultipartData((string)$id, (string)$value); |
|
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | $builder->append($data); |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | $body = $builder->buildAll(); |
| 130 | 130 | $array = [ |
| 131 | 131 | 'headers' => [ |
| 132 | - 'Content-Type' => 'multipart/form-data; boundary="' . $builder->getBoundary() . '"', |
|
| 132 | + 'Content-Type' => 'multipart/form-data; boundary="'.$builder->getBoundary().'"', |
|
| 133 | 133 | 'Content-Length' => strlen($body) |
| 134 | 134 | ], |
| 135 | 135 | 'body' => $body |