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